Skip to content

Commit 440c8d7

Browse files
ryjonesclaude
andcommitted
Pin workflow actions to latest versions by commit SHA
Update publish.yml to the current major releases and pin each to an immutable commit SHA with a version comment: - actions/checkout v2 -> v7.0.0 - actions/cache v2 -> v6.0.0 - helaili/jekyll-action v2 -> v2.5 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Ry Jones <ry@linux.com>
1 parent c0a1d96 commit 440c8d7

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,31 @@ jobs:
99
jekyll:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
13+
with:
14+
persist-credentials: false
1315

1416
# Use GitHub Actions' cache to shorten build times and decrease load on servers
15-
- uses: actions/cache@v2
17+
- uses: actions/cache@2c8a9bd7457de244a408f35966fab2fb45fda9c8 # v6.0.0
1618
with:
1719
path: vendor/bundle
1820
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
1921
restore-keys: |
2022
${{ runner.os }}-gems-
2123
2224
# Standard usage
23-
- uses: helaili/jekyll-action@v2
25+
- uses: helaili/jekyll-action@c1527523361ec3ecc54b2371ddef44826e28c0f5 # v2.5
2426
with:
2527
token: ${{ secrets.GITHUB_TOKEN }}
2628

2729
# Specify the Jekyll source location as a parameter
28-
- uses: helaili/jekyll-action@v2
30+
- uses: helaili/jekyll-action@c1527523361ec3ecc54b2371ddef44826e28c0f5 # v2.5
2931
with:
3032
token: ${{ secrets.GITHUB_TOKEN }}
3133
jekyll_src: '/'
3234

3335
# Specify the target branch (optional)
34-
- uses: helaili/jekyll-action@v2
36+
- uses: helaili/jekyll-action@c1527523361ec3ecc54b2371ddef44826e28c0f5 # v2.5
3537
with:
3638
token: ${{ secrets.GITHUB_TOKEN }}
3739
target_branch: 'gh-pages'

0 commit comments

Comments
 (0)