From f1f4886e956d4e21b70b4eb3b275a77acd620b8b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 14 Feb 2026 00:04:35 +0000 Subject: [PATCH 1/2] Add @bot coverage comment trigger to coverage workflow Co-authored-by: greenc-FNAL <2372949+greenc-FNAL@users.noreply.github.com> --- .github/workflows/coverage.yaml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index cdfcc181e..76f5e62cf 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -6,6 +6,8 @@ on: push: branches: [ main, develop ] pull_request: + issue_comment: + types: [created] workflow_dispatch: inputs: ref: @@ -27,22 +29,41 @@ permissions: jobs: pre-check: + if: > + github.event_name == 'workflow_dispatch' || + github.event_name == 'pull_request' || + github.event_name == 'push' || + ( + github.event_name == 'issue_comment' && + github.event.issue.pull_request && + contains(fromJSON('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association) && + startsWith(github.event.comment.body, format('@{0}bot coverage', github.event.repository.name)) + ) + # Authorization: Only OWNER, COLLABORATOR, or MEMBER can trigger via comments. + # This covers repo owners, invited collaborators, and all org members. + # See .github/AUTHORIZATION_ANALYSIS.md for security rationale. runs-on: ubuntu-latest outputs: is_act: ${{ steps.detect_act.outputs.is_act }} - ref: ${{ (github.event_name == 'workflow_dispatch' && (github.event.inputs.ref || github.ref)) || github.sha }} - repo: ${{ github.repository }} - base_sha: ${{ github.event.pull_request.base.sha || github.event.before }} + ref: ${{ (github.event_name == 'workflow_dispatch' && (github.event.inputs.ref || github.ref)) || steps.pr.outputs.ref || github.sha }} + repo: ${{ steps.pr.outputs.repo || github.repository }} + base_sha: ${{ steps.pr.outputs.base_sha || github.event.pull_request.base.sha || github.event.before }} steps: - name: Detect act environment id: detect_act uses: Framework-R-D/phlex/.github/actions/detect-act-env@main + - name: Get PR Info + if: github.event_name == 'issue_comment' + id: pr + uses: Framework-R-D/phlex/.github/actions/get-pr-info@main + detect-changes: needs: pre-check if: > needs.pre-check.result == 'success' && github.event_name != 'workflow_dispatch' && + github.event_name != 'issue_comment' && needs.pre-check.outputs.is_act != 'true' runs-on: ubuntu-latest permissions: From 370020205217eff087bb66fc199ea657d5429259 Mon Sep 17 00:00:00 2001 From: Chris Green Date: Fri, 13 Feb 2026 18:17:13 -0600 Subject: [PATCH 2/2] Reorder steps for consistency Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/coverage.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 76f5e62cf..962c1ba5c 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -49,15 +49,14 @@ jobs: repo: ${{ steps.pr.outputs.repo || github.repository }} base_sha: ${{ steps.pr.outputs.base_sha || github.event.pull_request.base.sha || github.event.before }} steps: - - name: Detect act environment - id: detect_act - uses: Framework-R-D/phlex/.github/actions/detect-act-env@main - - name: Get PR Info if: github.event_name == 'issue_comment' id: pr uses: Framework-R-D/phlex/.github/actions/get-pr-info@main + - name: Detect act environment + id: detect_act + uses: Framework-R-D/phlex/.github/actions/detect-act-env@main detect-changes: needs: pre-check if: >