Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
137298: ci: bump dependency for `code-cover-pubish` GH action r=rickystewart,RaduBerinde a=srosenberg

`actions/github-script` started failing auth on `downloadArtifact`
as of several weeks ago. Bumping to the latest version (v7.0.1)
seems to resolve it.

Epic: none
Release note: None

Co-authored-by: Stan Rosenberg <[email protected]>
  • Loading branch information
craig[bot] and srosenberg committed Dec 11, 2024
2 parents f8f539e + 975c428 commit 00264aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/code-cover-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
github.event.workflow_run.conclusion == 'success'
steps:
- name: 'Download artifact'
uses: actions/github-script@v3.1.0
uses: actions/github-script@v7.0.1
with:
script: |
var artifacts = await github.actions.listWorkflowRunArtifacts({
Expand All @@ -30,7 +30,7 @@ jobs:
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
return artifact.name == "cover"
})[0];
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,
Expand Down

0 comments on commit 00264aa

Please sign in to comment.