From 1498ef1c1c096106954e34233148794f9168cfd6 Mon Sep 17 00:00:00 2001 From: WebFreak001 Date: Sat, 18 Oct 2025 21:47:04 +0200 Subject: [PATCH] update CI --- .github/workflows/pr_info_post.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr_info_post.yml b/.github/workflows/pr_info_post.yml index 2597375..e1cf7cf 100644 --- a/.github/workflows/pr_info_post.yml +++ b/.github/workflows/pr_info_post.yml @@ -16,17 +16,15 @@ jobs: steps: # from https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ - name: 'Download artifact' - uses: actions/github-script@v3.1.0 + uses: actions/github-script@v8 with: script: | - var artifacts = await github.actions.listWorkflowRunArtifacts({ + var { data: artifacts } = await github.actions.listWorkflowRunArtifacts({ owner: context.repo.owner, repo: context.repo.repo, run_id: ${{github.event.workflow_run.id }}, }); - var matchArtifact = artifacts.data.artifacts.filter((artifact) => { - return artifact.name == "pr" - })[0]; + var matchArtifact = artifacts.artifacts.filter((artifact) => artifact.name === "pr")[0]; var download = await github.actions.downloadArtifact({ owner: context.repo.owner, repo: context.repo.repo,