From c49ba9002a0a382ca4d76e92cf556e6b14cb24e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=CC=81mi=20Be=CC=81tin?= Date: Fri, 14 Aug 2026 19:49:18 +0200 Subject: [PATCH 1/4] Update workflows --- .github/workflows/wai-trigger-cleanup.yml | 11 +++++++---- .github/workflows/wai-trigger-deploy.yml | 5 ++++- .github/workflows/wai-trigger-pr.yml | 11 ++++++----- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/workflows/wai-trigger-cleanup.yml b/.github/workflows/wai-trigger-cleanup.yml index f970d8e573..eb4695576c 100644 --- a/.github/workflows/wai-trigger-cleanup.yml +++ b/.github/workflows/wai-trigger-cleanup.yml @@ -8,15 +8,18 @@ on: types: - closed +permissions: + contents: read + jobs: cleanup-branch-wai: if: ${{ github.event_name == 'delete' && github.event.ref_type == 'branch' }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1 - name: Set up Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 #v7.0.0 with: cache: npm @@ -36,10 +39,10 @@ jobs: if: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_target' }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1 - name: Set up Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 #v7.0.0 with: cache: npm diff --git a/.github/workflows/wai-trigger-deploy.yml b/.github/workflows/wai-trigger-deploy.yml index 5a4a4f2597..862486bbdb 100644 --- a/.github/workflows/wai-trigger-deploy.yml +++ b/.github/workflows/wai-trigger-deploy.yml @@ -10,6 +10,9 @@ on: - "content/**" - "README.md" +permissions: + contents: read + jobs: deploy-wai: runs-on: ubuntu-latest @@ -17,7 +20,7 @@ jobs: - uses: actions/checkout@v5 - name: Trigger wai-aria-practices update - uses: actions/github-script@v7 + uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b #v7.1.0 with: github-token: ${{ secrets.W3CGRUNTBOT_TOKEN }} script: | diff --git a/.github/workflows/wai-trigger-pr.yml b/.github/workflows/wai-trigger-pr.yml index 98acc8baac..d5a41b4856 100644 --- a/.github/workflows/wai-trigger-pr.yml +++ b/.github/workflows/wai-trigger-pr.yml @@ -15,17 +15,18 @@ on: - "!content/landmarks/examples/**" - "!common/**" +permissions: + contents: read + jobs: create-pr-wai: runs-on: ubuntu-latest + # Only run on pull requests within the same repository, and not from forks. + if: github.event.pull_request.head.repo.full_name == github.repository steps: - - uses: actions/checkout@v5 - with: - ref: refs/pull/${{ github.event.pull_request.number }}/head - - name: Trigger wai-aria-practices PR update - uses: actions/github-script@v7 + uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd #v8.0.0 env: APG_BRANCH: ${{ github.head_ref }} APG_SHA: ${{ github.event.pull_request.head.sha }} From b8a9ec9901e244a241e7e77b151a14064b22e198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=CC=81mi=20Be=CC=81tin?= Date: Wed, 4 Nov 2026 17:39:01 +0100 Subject: [PATCH 2/4] Update actions/checkout in wai-trigger-deploy --- .github/workflows/wai-trigger-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/wai-trigger-deploy.yml b/.github/workflows/wai-trigger-deploy.yml index 862486bbdb..c01bfd12a6 100644 --- a/.github/workflows/wai-trigger-deploy.yml +++ b/.github/workflows/wai-trigger-deploy.yml @@ -17,7 +17,7 @@ jobs: deploy-wai: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1 - name: Trigger wai-aria-practices update uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b #v7.1.0 From ba1b31b3cbe9ebfd554f22dd19a6b017c583050c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=CC=81mi=20Be=CC=81tin?= Date: Wed, 4 Nov 2026 17:42:27 +0100 Subject: [PATCH 3/4] Use pull_request event instead of pull_request_target --- .github/workflows/wai-trigger-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/wai-trigger-pr.yml b/.github/workflows/wai-trigger-pr.yml index d5a41b4856..40f2b79826 100644 --- a/.github/workflows/wai-trigger-pr.yml +++ b/.github/workflows/wai-trigger-pr.yml @@ -1,7 +1,7 @@ name: Trigger PR update for WAI-APG site on: - pull_request_target: + pull_request: branches-ignore: - "dependabot/**" paths: From adaa3a61fffdb2af6c9f6bbcf5d247e4c7375dbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=CC=81mi=20Be=CC=81tin?= Date: Fri, 13 Nov 2026 01:10:14 +0100 Subject: [PATCH 4/4] Bump github-script to v8.0.0 --- .github/workflows/wai-trigger-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/wai-trigger-deploy.yml b/.github/workflows/wai-trigger-deploy.yml index c01bfd12a6..5245bd261e 100644 --- a/.github/workflows/wai-trigger-deploy.yml +++ b/.github/workflows/wai-trigger-deploy.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1 - name: Trigger wai-aria-practices update - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b #v7.1.0 + uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd #v8.0.0 with: github-token: ${{ secrets.W3CGRUNTBOT_TOKEN }} script: |