Skip to content

Commit 4c80ffa

Browse files
committed
Fix Sonar action for pull requests
1 parent 9890872 commit 4c80ffa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/sonarcloud-pull.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
pr-base: ${{ steps.pr-base-script.outputs.result }}
2020
steps:
2121
- name: 'Download PR artifact'
22-
uses: actions/github-script@v3.1.0
22+
uses: actions/github-script@v7
2323
id: download-pr
2424
with:
2525
result-encoding: string
2626
script: |
27-
var artifacts = await github.actions.listWorkflowRunArtifacts({
27+
var artifacts = await github.rest.actions.listWorkflowRunArtifacts({
2828
owner: context.repo.owner,
2929
repo: context.repo.repo,
3030
run_id: context.payload.workflow_run.id,
@@ -36,7 +36,7 @@ jobs:
3636
core.setFailed("No PR artifact");
3737
return "False";
3838
}
39-
var download = await github.actions.downloadArtifact({
39+
var download = await github.rest.actions.downloadArtifact({
4040
owner: context.repo.owner,
4141
repo: context.repo.repo,
4242
artifact_id: matchArtifact.id,
@@ -53,7 +53,7 @@ jobs:
5353
- name: Retrieve the pr number
5454
if: success()
5555
id: pr-artifact-script
56-
uses: actions/github-script@v3.1.0
56+
uses: actions/github-script@v7
5757
with:
5858
result-encoding: string
5959
script: |
@@ -64,7 +64,7 @@ jobs:
6464
- name: Retrieve the pr base
6565
if: success()
6666
id: pr-base-script
67-
uses: actions/github-script@v3.1.0
67+
uses: actions/github-script@v7
6868
with:
6969
result-encoding: string
7070
script: |

0 commit comments

Comments
 (0)