Skip to content
Merged
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
6 changes: 3 additions & 3 deletions .github/workflows/auto_assign_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: |
echo ${{ github.event.workflow_run.event }}
- name: 'Download artifact'
uses: actions/github-script@v3.1.0
uses: actions/github-script@v9.0.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API calls use removed github.actions namespace

High Severity

The script calls github.actions.listWorkflowRunArtifacts() and github.actions.downloadArtifact(), but actions/github-script v5+ moved all REST endpoint methods under the github.rest namespace. With v9, github.actions is undefined, causing a TypeError at runtime. These need to be github.rest.actions.listWorkflowRunArtifacts() and github.rest.actions.downloadArtifact() respectively.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit c017356. Configure here.

with:
script: |
var artifacts = await github.actions.listWorkflowRunArtifacts({
Expand All @@ -49,7 +49,7 @@ jobs:
- run: unzip pr.zip
- name: 'Find PR Number'
id: find-pr-number
uses: actions/github-script@v6
uses: actions/github-script@v9.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand All @@ -60,7 +60,7 @@ jobs:
result-encoding: string
- name: 'Find PR Title'
id: find-pr-title
uses: actions/github-script@v6
uses: actions/github-script@v9.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down
Loading