From e1130f22054bc0242b45c3be9933ae887c579b1c Mon Sep 17 00:00:00 2001 From: "red-hat-konflux[bot]" <126015336+red-hat-konflux[bot]@users.noreply.github.com> Date: Mon, 24 Aug 2026 06:20:07 +0000 Subject: [PATCH] Update actions/github-script action to v9 Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> --- .github/workflows/agent-files-detect.yaml | 2 +- .github/workflows/agent-files-enforce.yaml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/agent-files-detect.yaml b/.github/workflows/agent-files-detect.yaml index 58411638b..78b435633 100644 --- a/.github/workflows/agent-files-detect.yaml +++ b/.github/workflows/agent-files-detect.yaml @@ -148,7 +148,7 @@ jobs: statuses: write steps: - name: Post success status - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 with: script: | await github.rest.repos.createCommitStatus({ diff --git a/.github/workflows/agent-files-enforce.yaml b/.github/workflows/agent-files-enforce.yaml index 2545ec42f..2c60d379f 100644 --- a/.github/workflows/agent-files-enforce.yaml +++ b/.github/workflows/agent-files-enforce.yaml @@ -24,7 +24,7 @@ jobs: steps: - name: Resolve PR number from workflow run id: resolve - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 with: script: | const run = context.payload.workflow_run; @@ -59,7 +59,7 @@ jobs: # the workflow files, the artifact cannot be trusted. Check independently via API. - name: Check for workflow file changes id: workflow-check - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 env: PR_NUMBER: ${{ needs.resolve-pr.outputs.pr_number }} with: @@ -135,7 +135,7 @@ jobs: - name: Delete detection artifact if: steps.download.outcome == 'success' - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 with: script: | const runId = ${{ github.event.workflow_run.id }}; @@ -155,7 +155,7 @@ jobs: - name: Add review label if: steps.decide.outputs.label_action == 'add' - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 env: PR_NUMBER: ${{ needs.resolve-pr.outputs.pr_number }} with: @@ -208,7 +208,7 @@ jobs: # agent files — e.g. the PR reverted its earlier agent-file changes. - name: Remove review label if: steps.decide.outputs.label_action == 'remove' - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 env: PR_NUMBER: ${{ needs.resolve-pr.outputs.pr_number }} with: @@ -245,7 +245,7 @@ jobs: id: pr env: RESOLVE_PR_NUMBER: ${{ needs.resolve-pr.outputs.pr_number }} - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 with: script: | if (context.eventName === 'workflow_run') { @@ -265,7 +265,7 @@ jobs: PR_NUMBER: ${{ steps.pr.outputs.number }} LABEL_JOB_RESULT: ${{ needs.label-protected-changes.result }} LABEL_ACTION: ${{ needs.label-protected-changes.outputs.label_action }} - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9 with: script: | const label = process.env.REVIEW_LABEL;