diff options
author | Tomas Mraz <tomas@openssl.org> | 2022-11-09 13:55:56 +0100 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2022-11-10 07:46:38 +1100 |
commit | 3ede8f19b58a62cf638951d76a672d48fa083ac3 (patch) | |
tree | 0a121f073028f3e73f2888f021d191d8471c3514 /.github/workflows | |
parent | 08043118d1d303921537997543cafeaaae972383 (diff) |
fips-label.yml: Fix the script after actions/github-script upgrade
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19636)
(cherry picked from commit ada6f0533d3299833b27e623ff1bfe3134e8e466)
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/fips-label.yml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/.github/workflows/fips-label.yml b/.github/workflows/fips-label.yml index c288c44a62..98f07512ce 100644 --- a/.github/workflows/fips-label.yml +++ b/.github/workflows/fips-label.yml @@ -28,7 +28,7 @@ jobs: uses: actions/github-script@v6 with: script: | - var artifacts = await github.actions.listWorkflowRunArtifacts({ + var artifacts = await github.rest.actions.listWorkflowRunArtifacts({ owner: context.repo.owner, repo: context.repo.repo, run_id: ${{github.event.workflow_run.id }}, @@ -36,7 +36,7 @@ jobs: var matchArtifact = artifacts.data.artifacts.filter((artifact) => { return artifact.name == "fips_checksum" })[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, @@ -55,14 +55,14 @@ jobs: var fs = require('fs'); var pr_num = Number(fs.readFileSync('./pr_num')); if ( fs.existsSync('./fips_changed') ) { - github.issues.addLabels({ + github.rest.issues.addLabels({ issue_number: pr_num, owner: context.repo.owner, repo: context.repo.repo, labels: ['severity: fips change'] }); } else if ( fs.existsSync('./fips_unchanged') ) { - var labels = await github.issues.listLabelsOnIssue({ + var labels = await github.rest.issues.listLabelsOnIssue({ issue_number: pr_num, owner: context.repo.owner, repo: context.repo.repo @@ -70,7 +70,7 @@ jobs: for ( var label in labels.data ) { if (labels.data[label].name == 'severity: fips change') { - github.issues.removeLabel({ + github.rest.issues.removeLabel({ issue_number: pr_num, owner: context.repo.owner, repo: context.repo.repo, |