diff --git a/.github/workflows/sonarcloud-pull.yml b/.github/workflows/sonarcloud-pull.yml index 7c97e92b76a..161ce178636 100644 --- a/.github/workflows/sonarcloud-pull.yml +++ b/.github/workflows/sonarcloud-pull.yml @@ -19,12 +19,12 @@ jobs: pr-base: ${{ steps.pr-base-script.outputs.result }} steps: - name: 'Download PR artifact' - uses: actions/github-script@v3.1.0 + uses: actions/github-script@v7 id: download-pr with: result-encoding: string script: | - var artifacts = await github.actions.listWorkflowRunArtifacts({ + var artifacts = await github.rest.actions.listWorkflowRunArtifacts({ owner: context.repo.owner, repo: context.repo.repo, run_id: context.payload.workflow_run.id, @@ -36,7 +36,7 @@ jobs: core.setFailed("No PR artifact"); return "False"; } - var download = await github.actions.downloadArtifact({ + var download = await github.rest.actions.downloadArtifact({ owner: context.repo.owner, repo: context.repo.repo, artifact_id: matchArtifact.id, @@ -53,7 +53,7 @@ jobs: - name: Retrieve the pr number if: success() id: pr-artifact-script - uses: actions/github-script@v3.1.0 + uses: actions/github-script@v7 with: result-encoding: string script: | @@ -64,7 +64,7 @@ jobs: - name: Retrieve the pr base if: success() id: pr-base-script - uses: actions/github-script@v3.1.0 + uses: actions/github-script@v7 with: result-encoding: string script: |