Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/agent-files-detect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:
statuses: write
steps:
- name: Post success status
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
await github.rest.repos.createCommitStatus({
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/agent-files-enforce.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.0.0
Comment thread
mshaposhnik marked this conversation as resolved.
with:
script: |
const run = context.payload.workflow_run;
Expand Down Expand Up @@ -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.0.0
env:
PR_NUMBER: ${{ needs.resolve-pr.outputs.pr_number }}
with:
Expand Down Expand Up @@ -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.0.0
with:
script: |
const runId = ${{ github.event.workflow_run.id }};
Expand All @@ -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.0.0
env:
PR_NUMBER: ${{ needs.resolve-pr.outputs.pr_number }}
with:
Expand Down Expand Up @@ -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.0.0
env:
PR_NUMBER: ${{ needs.resolve-pr.outputs.pr_number }}
with:
Expand Down Expand Up @@ -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.0.0
with:
script: |
if (context.eventName === 'workflow_run') {
Expand All @@ -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.0.0
with:
script: |
const label = process.env.REVIEW_LABEL;
Expand Down
Loading