update CI

This commit is contained in:
WebFreak001 2025-10-18 21:47:04 +02:00
parent a99b2cbac5
commit 458d95a75c
No known key found for this signature in database
GPG Key ID: 6374A5EBCC177695
1 changed files with 3 additions and 5 deletions

View File

@ -16,17 +16,15 @@ jobs:
steps: steps:
# from https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ # from https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
- name: 'Download artifact' - name: 'Download artifact'
uses: actions/github-script@v3.1.0 uses: actions/github-script@v8
with: with:
script: | script: |
var artifacts = await github.actions.listWorkflowRunArtifacts({ var { data: artifacts } = await github.actions.listWorkflowRunArtifacts({
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.repo, repo: context.repo.repo,
run_id: ${{github.event.workflow_run.id }}, run_id: ${{github.event.workflow_run.id }},
}); });
var matchArtifact = artifacts.data.artifacts.filter((artifact) => { var matchArtifact = artifacts.artifacts.filter((artifact) => artifact.name === "pr")[0];
return artifact.name == "pr"
})[0];
var download = await github.actions.downloadArtifact({ var download = await github.actions.downloadArtifact({
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.repo, repo: context.repo.repo,