Skip to content

Commit cbfbc04

Browse files
committed
ci: pin third-party actions to commit SHAs (REQ-1.4.10)
- Pin actions/checkout, github-script, 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 all 9 root .github/workflows/*.yml files - Tags resolved live via gh api (2026-07-07); repo had already drifted 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, github-script v9) - permissions: and timeout-minutes: were already present on every root workflow job; not modified there - Also fixed templates/demo-repo/.github/workflows/*.yml (autopilot-create-issue.yml, demo-ci.yml): these template files, copied into other repos by autopilot-org-installer.yml, were caught by workflow-lint's recursive scan with their own unpinned-action/missing-permissions/missing-timeout findings; out of the plan's original 9-file scope but fixed so this repo's own workflow-lint gate passes and installer-scaffolded repos inherit compliant templates
1 parent cd76345 commit cbfbc04

11 files changed

Lines changed: 21 additions & 16 deletions

File tree

.github/workflows/autopilot-create-issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
timeout-minutes: 10
1919
steps:
2020
- name: Create or update issue
21-
uses: actions/github-script@v9
21+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
2222
with:
2323
script: |
2424
const run = context.payload.workflow_run;

.github/workflows/autopilot-docs-daily.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
GH_TOKEN: ${{ secrets.ORG_READ_TOKEN || github.token }}
2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v7
23+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
2424

2525
- name: Update status docs
2626
run: |

.github/workflows/autopilot-operator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
}
3030
3131
- name: Checkout
32-
uses: actions/checkout@v7
32+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
3333
with:
3434
clean: false
3535

.github/workflows/autopilot-org-installer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020
steps:
2121
- name: Checkout installer
22-
uses: actions/checkout@v7
22+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
2323

2424
- name: Sync intake workflow
2525
run: |

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
timeout-minutes: 10
1616
steps:
17-
- uses: actions/checkout@v7
17+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
1818

1919
- name: Install workflow validator dependency
2020
run: python -m pip install --disable-pip-version-check PyYAML==6.0.2

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222
language: ['python']
2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@v7
25+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
2626
- name: Initialize CodeQL
27-
uses: github/codeql-action/init@v4
27+
uses: github/codeql-action/init@54f647b7e1bb85c95cddabcd46b0c578ec92bc1a # v4
2828
with:
2929
languages: ${{ matrix.language }}
3030
- name: Autobuild
31-
uses: github/codeql-action/autobuild@v4
31+
uses: github/codeql-action/autobuild@54f647b7e1bb85c95cddabcd46b0c578ec92bc1a # v4
3232
- name: Perform CodeQL Analysis
33-
uses: github/codeql-action/analyze@v4
33+
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
@@ -16,13 +16,13 @@ jobs:
1616
runs-on: ubuntu-latest
1717
timeout-minutes: 10
1818
steps:
19-
- uses: actions/checkout@v7
20-
- uses: actions/setup-python@v6
19+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
20+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
2121
with:
2222
python-version: 3.x
2323
- run: pip install mkdocs-material
2424
- run: mkdocs build
25-
- uses: actions/upload-pages-artifact@v5
25+
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5
2626
with:
2727
path: ./site
2828
deploy:
@@ -35,4 +35,4 @@ jobs:
3535
steps:
3636
- name: Deploy to GitHub Pages
3737
id: deployment
38-
uses: actions/deploy-pages@v5
38+
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
@@ -12,6 +12,6 @@ jobs:
1212
runs-on: ubuntu-latest
1313
timeout-minutes: 10
1414
steps:
15-
- uses: amannn/action-semantic-pull-request@v6
15+
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6
1616
env:
1717
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
timeout-minutes: 10
1515
steps:
16-
- uses: actions/stale@v10
16+
- uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # v10
1717
with:
1818
days-before-stale: 60
1919
days-before-close: 7

templates/demo-repo/.github/workflows/autopilot-create-issue.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ jobs:
1515
create-issue:
1616
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
1717
runs-on: ubuntu-latest
18+
timeout-minutes: 10
1819
steps:
1920
- name: Create or update issue
20-
uses: actions/github-script@v9
21+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
2122
with:
2223
script: |
2324
const run = context.payload.workflow_run;

0 commit comments

Comments
 (0)