Skip to content

Commit 8db0710

Browse files
committed
ci: SHA-pin the pages + gitea actions like the other workflows
pages.yaml floated every action on major tags (checkout@v4, configure-pages@v5, jekyll-build-pages@v1, upload-pages-artifact@v3, deploy-pages@v4) and the Gitea build used checkout@v4, while qa.yaml and both release workflows pin SHAs -- the repo's stated supply-chain policy (dependabot.yml). Pin each to the newest release of the major it already used (checkout gets the same v7.0.0 the other workflows pin), so this is a no-op in behaviour. Dependabot keeps the pins current. Verify on the next pages run: same ~60 s job, pinned refs in the log. Assisted-by: AI
1 parent 6125f34 commit 8db0710

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.gitea/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
amebaz2-build:
2222
runs-on: sdk-builder # host-mode Gitea runner: ~/ameba-dev + ARM toolchain on PATH
2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2525

2626
- name: Provision build env from the runner host
2727
run: |

.github/workflows/pages.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,20 @@ jobs:
4141
build:
4242
runs-on: ubuntu-latest
4343
steps:
44-
- uses: actions/checkout@v4
44+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
4545

4646
- name: Assemble the site
4747
run: |
4848
python3 .github/scripts/assemble_docs_site.py
4949
50-
- uses: actions/configure-pages@v5
50+
- uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
5151

52-
- uses: actions/jekyll-build-pages@v1
52+
- uses: actions/jekyll-build-pages@44a6e6beabd48582f863aeeb6cb2151cc1716697 # v1.0.13
5353
with:
5454
source: ./_site_src
5555
destination: ./_site
5656

57-
- uses: actions/upload-pages-artifact@v3
57+
- uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
5858

5959
deploy:
6060
needs: build
@@ -65,14 +65,14 @@ jobs:
6565
url: ${{ steps.deployment.outputs.page_url }}
6666
steps:
6767
- id: deployment
68-
uses: actions/deploy-pages@v4
68+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
6969

7070
# Tell IndexNow the site changed, instead of waiting to be crawled. Runs AFTER deploy so the
7171
# URLs (and the key file it verifies) are actually live. The key is not a secret: engines
7272
# authenticate by fetching it from the site, which is why it is committed rather than stored
7373
# as a repo secret. Never allowed to fail the workflow -- a submission endpoint being down
7474
# says nothing about whether the site published.
75-
- uses: actions/checkout@v4
75+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
7676
- name: Ping IndexNow
7777
continue-on-error: true
7878
env:

0 commit comments

Comments
 (0)