Skip to content

Commit b35dd88

Browse files
committed
ci: pin third-party actions to commit SHAs and add least-privilege permissions (REQ-1.4.10)
- Pin actions/checkout, setup-python, codeql-action init/autobuild/analyze, upload-pages-artifact, deploy-pages, amannn/action-semantic-pull-request, and actions/stale to immutable commit SHAs across ci.yml, codeql.yml, pages.yml, pr-lint.yml, stale.yml - Tags resolved live via gh api (2026-07-07) since files were already bumped past the phase-31-01 baseline (checkout v7, setup-python v6, codeql-action v4, upload-pages-artifact v5, deploy-pages v5, action-semantic-pull-request v6, stale v10) - codeql.yml, pr-lint.yml, and stale.yml already carry permissions: blocks (added ahead of this plan); not modified here — only uses: lines changed - contract-registry-live.yml already SHA-pinned; left untouched
1 parent e52e6aa commit b35dd88

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
python-version: ['3.12']
2525

2626
steps:
27-
- uses: actions/checkout@v7
27+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
2828

2929
- name: Set up Python
30-
uses: actions/setup-python@v6
30+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
3131
with:
3232
python-version: ${{ matrix.python-version }}
3333
cache: pip

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
language: [ 'javascript', 'python' ]
2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v7
22+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
2323
- name: Initialize CodeQL
24-
uses: github/codeql-action/init@v4
24+
uses: github/codeql-action/init@54f647b7e1bb85c95cddabcd46b0c578ec92bc1a # v4
2525
with:
2626
languages: ${{ matrix.language }}
2727
- name: Autobuild
28-
uses: github/codeql-action/autobuild@v4
28+
uses: github/codeql-action/autobuild@54f647b7e1bb85c95cddabcd46b0c578ec92bc1a # v4
2929
- name: Perform CodeQL Analysis
30-
uses: github/codeql-action/analyze@v4
30+
uses: github/codeql-action/analyze@54f647b7e1bb85c95cddabcd46b0c578ec92bc1a # v4

.github/workflows/pages.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515
timeout-minutes: 15
1616
steps:
17-
- uses: actions/checkout@v7
18-
- uses: actions/setup-python@v6
17+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
18+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
1919
with:
2020
python-version: 3.x
2121
- run: pip install mkdocs-material
2222
- run: mkdocs build
23-
- uses: actions/upload-pages-artifact@v5
23+
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5
2424
with:
2525
path: ./site
2626
deploy:
@@ -36,4 +36,4 @@ jobs:
3636
steps:
3737
- name: Deploy to GitHub Pages
3838
id: deployment
39-
uses: actions/deploy-pages@v5
39+
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5

.github/workflows/pr-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ jobs:
1313
permissions:
1414
pull-requests: read
1515
steps:
16-
- uses: amannn/action-semantic-pull-request@v6
16+
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6
1717
env:
1818
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
issues: write
1212
pull-requests: write
1313
steps:
14-
- uses: actions/stale@v10
14+
- uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # v10
1515
with:
1616
days-before-stale: 60
1717
days-before-close: 7

0 commit comments

Comments
 (0)