Skip to content

Commit 1293667

Browse files
committed
ci: pin Github Actions
1 parent b8b277a commit 1293667

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.github/workflows/hugo.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ jobs:
3939
- name: Install Dart Sass Embedded
4040
run: sudo snap install dart-sass-embedded
4141
- name: Checkout
42-
uses: actions/checkout@v4
42+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
4343
with:
4444
submodules: recursive
4545
- name: Setup Pages
4646
id: pages
47-
uses: actions/configure-pages@v5
47+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
4848
- name: Install Node.js dependencies
4949
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
5050
- name: Build with Hugo
@@ -57,7 +57,7 @@ jobs:
5757
--minify \
5858
--baseURL "${{ steps.pages.outputs.base_url }}/"
5959
- name: Upload artifact
60-
uses: actions/upload-pages-artifact@v3
60+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
6161
with:
6262
path: ./public
6363

@@ -71,4 +71,4 @@ jobs:
7171
steps:
7272
- name: Deploy to GitHub Pages
7373
id: deployment
74-
uses: actions/deploy-pages@v4
74+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4

.github/workflows/markdown.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
markdown-link-check:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1515
- name: Restore lychee cache
16-
uses: actions/cache@v4
16+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
1717
with:
1818
path: .lycheecache
1919
key: cache-lychee-${{ github.sha }}
2020
restore-keys: cache-lychee-
21-
- uses: lycheeverse/lychee-action@a8c4c7cb88f0c7386610c35eb25108e448569cb0 # for v2.7.0
21+
- uses: lycheeverse/lychee-action@a8c4c7cb88f0c7386610c35eb25108e448569cb0 # v2.7.0
2222
with:
2323
args: -a 200..=204,403,429 --verbose --no-progress --cache --max-cache-age 1d --scheme http --scheme https './**/*.md' './layout/shortcodes/fuzzing/*.html'
2424
fail: true
@@ -27,17 +27,17 @@ jobs:
2727
markdown-linter:
2828
runs-on: ubuntu-latest
2929
steps:
30-
- uses: actions/checkout@v4
31-
- uses: DavidAnson/markdownlint-cli2-action@v19
30+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
31+
- uses: DavidAnson/markdownlint-cli2-action@05f32210e84442804257b2a6f20b273450ec8265 # v19
3232
with:
3333
globs: "**/*.md"
3434
# Spellcheck Markdown files using `retext` and `remark`
3535
# Uses: a custom dictionary file
3636
spellcheck:
3737
runs-on: ubuntu-latest
3838
steps:
39-
- uses: actions/checkout@v4
40-
- uses: tbroadley/spellchecker-cli-action@v1
39+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
40+
- uses: tbroadley/spellchecker-cli-action@8369e98753c0d2c3a3c76fb4519d9056d1d4b129 # v1
4141
with:
4242
# No need to use a dictionary file with the disabled spell plugin
4343
# dictionaries: '.github/workflows/dictionary.txt'

.github/workflows/preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Install Dart Sass Embedded
3434
run: sudo snap install dart-sass-embedded
3535
- name: Checkout
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3737
with:
3838
submodules: recursive
3939
- name: Install Node.js dependencies
@@ -48,7 +48,7 @@ jobs:
4848
--minify \
4949
--baseURL "https://trailofbits.github.io/testing-handbook-preview/pr-preview/pr-${{ github.event.number }}/"
5050
- name: Deploy preview
51-
uses: rossjrw/pr-preview-action@v1
51+
uses: rossjrw/pr-preview-action@8ff09e486b4c23709012eedd3b42e9f0b95dd0c5 # v1
5252
with:
5353
source-dir: ./public/
5454
token: ${{ secrets.TESTING_HANDBOOK_PREVIEW_REPO }}

0 commit comments

Comments
 (0)