Skip to content

Commit 881dbb0

Browse files
committed
ci: harden actions & add dependabot
1 parent feb2b2a commit 881dbb0

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
updates:
3+
# Check for updates to GitHub Actions every week
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
cooldown:
9+
default-days: 7

.github/workflows/deploy.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ defaults:
1818
run:
1919
shell: bash
2020

21+
permissions:
22+
contents: read
23+
2124
jobs:
2225
# Build job
2326
build:
@@ -34,13 +37,14 @@ jobs:
3437
run: sudo snap install dart-sass-embedded
3538

3639
- name: Checkout
37-
uses: actions/checkout@v3
40+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3841
with:
3942
submodules: recursive
43+
persistent-credentials: false
4044

4145
- name: Setup Pages
4246
id: pages
43-
uses: actions/configure-pages@v5
47+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
4448

4549
- name: Install Node.js dependencies
4650
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
@@ -57,7 +61,7 @@ jobs:
5761
run: "pip install check-jsonschema"
5862

5963
- name: Validation tooling cache
60-
uses: actions/cache@v4
64+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
6165
with:
6266
path: ~/.cache/check_jsonschema/
6367
key: validation_tooling
@@ -67,24 +71,24 @@ jobs:
6771
bash validate.sh
6872
6973
- name: Upload artifact
70-
uses: actions/upload-pages-artifact@v3
74+
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
7175
with:
7276
path: ./public
73-
77+
7478
# Deployment job
7579
deploy:
7680
environment:
7781
name: github-pages
7882
url: ${{ steps.deployment.outputs.page_url }}
7983
runs-on: ubuntu-latest
8084
needs: build
81-
85+
8286
permissions: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
8387
contents: read
8488
pages: write
8589
id-token: write
86-
90+
8791
steps:
8892
- name: Deploy to GitHub Pages
8993
id: deployment
90-
uses: actions/deploy-pages@v4
94+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5

0 commit comments

Comments
 (0)