Skip to content

Commit 98e4ca5

Browse files
committed
chore: pin GitHub Actions to commit SHAs and bump versions
Pin all GitHub Actions to full commit SHAs to prevent supply-chain attacks. Also bumps to latest stable releases and adds dependabot.yml for automated weekly SHA updates. - actions/checkout v4 -> v6 - actions/upload-artifact v4 -> v7 - actions/labeler v4 -> v6 - tj-actions/changed-files v46.0.1 -> v47.0.6 - Add .github/dependabot.yml (weekly, grouped by org)
1 parent ac62bfe commit 98e4ca5

3 files changed

Lines changed: 21 additions & 4 deletions

File tree

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
groups:
8+
actions:
9+
patterns:
10+
- "actions/*"
11+
tj-actions:
12+
patterns:
13+
- "tj-actions/*"

.github/workflows/apbx.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424

2525
steps:
2626
- name: Checkout code
27-
uses: actions/checkout@v6
27+
# gh api repos/actions/checkout/commits/v6 --jq '.sha'
28+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2829
with:
2930
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.branch || github.ref }}
3031
token: ${{ secrets.RUNNER_SECRET }}
@@ -34,7 +35,8 @@ jobs:
3435

3536
- name: Get changed files
3637
id: changed-files
37-
uses: tj-actions/changed-files@v47.0.4
38+
# gh api repos/tj-actions/changed-files/commits/v47.0.4 --jq '.sha'
39+
uses: tj-actions/changed-files@7dee1b0c1557f278e5c7dc244927139d78c0e22a # v47.0.4
3840
with:
3941
files_yaml: |
4042
sxsc:
@@ -136,7 +138,8 @@ jobs:
136138
working-directory: src\playbook
137139

138140
- name: Upload artifact
139-
uses: actions/upload-artifact@v7.0.0
141+
# gh api repos/actions/upload-artifact/commits/v7.0.0 --jq '.sha'
142+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
140143
if: ${{ steps.create-pb.outcome != 'skipped' }}
141144
with:
142145
name: Atlas Playbook

.github/workflows/labeler.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ jobs:
1010
pull-requests: write
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/labeler@v6.0.1
13+
# gh api repos/actions/labeler/commits/v6.0.1 --jq '.sha'
14+
- uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1

0 commit comments

Comments
 (0)