Skip to content

Commit e5cb41e

Browse files
committed
ci: update pages workflow actions
1 parent 2fec3cd commit e5cb41e

1 file changed

Lines changed: 18 additions & 15 deletions

File tree

.github/workflows/hugo.yaml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88

99
workflow_dispatch:
1010

11+
env:
12+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
13+
1114
permissions:
1215
contents: read
1316
pages: write
@@ -36,22 +39,22 @@ jobs:
3639
TZ: America/Toronto
3740
steps:
3841
- name: Checkout
39-
uses: actions/checkout@v5
42+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4043
with:
4144
submodules: recursive
4245
fetch-depth: 0
4346
- name: Setup Go
44-
uses: actions/setup-go@v6
47+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
4548
with:
4649
go-version: ${{ env.GO_VERSION }}
4750
cache: false
4851
- name: Setup Node.js
49-
uses: actions/setup-node@v6
52+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
5053
with:
5154
node-version: ${{ env.NODE_VERSION }}
5255
- name: Setup Pages
5356
id: pages
54-
uses: actions/configure-pages@v5
57+
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
5558
- name: Create directory for user-specific executable files
5659
run: |
5760
mkdir -p "${HOME}/.local"
@@ -82,7 +85,7 @@ jobs:
8285
git config core.quotepath false
8386
- name: Cache restore
8487
id: cache-restore
85-
uses: actions/cache/restore@v4
88+
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
8689
with:
8790
path: ${{ runner.temp }}/hugo_cache
8891
key: hugo-${{ github.run_id }}
@@ -97,30 +100,30 @@ jobs:
97100
--cacheDir "${{ runner.temp }}/hugo_cache"
98101
- name: Cache save
99102
id: cache-save
100-
uses: actions/cache/save@v4
103+
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
101104
with:
102105
path: ${{ runner.temp }}/hugo_cache
103106
key: ${{ steps.cache-restore.outputs.cache-primary-key }}
104107
- name: Upload artifact
105-
uses: actions/upload-pages-artifact@v4
108+
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
106109
with:
107110
path: ./marketing/public
108111
- name: Generate CycloneDX SBOM
109112
run: npx @cyclonedx/cyclonedx-npm --output-format JSON --output-file shiftleftcyber.github.io.cdx.json
110113
- name: Upload SBOM
111-
uses: actions/upload-artifact@v5
114+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a #v7.0.1
112115
with:
113116
name: generated-sbom
114117
path: ./marketing/shiftleftcyber.github.io.cdx.json
115118
- name: Sign SBOM
116-
uses: shiftleftcyber/secure-sbom-action@v1.3.1
119+
uses: shiftleftcyber/secure-sbom-action@542dffaadd81bc0614947d749720558a399e6454 # v2.4.0
117120
with:
118-
sbom_file: ./marketing/shiftleftcyber.github.io.cdx.json
119-
secure_sbom_action: sign
120-
api_key: ${{ secrets.SECURE_SBOM_API_KEY }}
121-
key_id: ${{ secrets.SECURE_SBOM_KEYID }}
121+
sbom_file: marketing/shiftleftcyber.github.io.cdx.json
122+
secure_sbom_action: sign_sbom
123+
secure_sbom_api_key: ${{ secrets.SECURE_SBOM_API_KEY }}
124+
secure_sbom_signing_key_id: ${{ vars.SECURE_SBOM_SIGNING_KEY_ID }}
122125
- name: Upload Signed SBOM
123-
uses: actions/upload-artifact@v5
126+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a #v7.0.1
124127
with:
125128
name: signed-sbom
126129
path: ./marketing/shiftleftcyber.github.io.cdx.signed.json
@@ -136,4 +139,4 @@ jobs:
136139
steps:
137140
- name: Deploy to GitHub Pages
138141
id: deployment
139-
uses: actions/deploy-pages@v4
142+
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0

0 commit comments

Comments
 (0)