Skip to content

Commit 6dcab3b

Browse files
authored
Add permissions and pinned action hashes to check.yml
1 parent 1a02842 commit 6dcab3b

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/check.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
name: Build docs and check cloudformation and dead links
1+
name: Build docs, check CloudFormation, check for dead links
22
concurrency:
33
group: ${{ github.workflow }}-${{ github.ref }}
44
cancel-in-progress: true
55
on:
66
pull_request:
77
branches:
88
- main
9+
permissions:
10+
contents: read
911

1012
jobs:
1113
check:
@@ -21,13 +23,13 @@ jobs:
2123
- name: Build documentation
2224
run: venv/bin/mkdocs build
2325
- name: Setup cloudformation linter
24-
uses: ScottBrenner/cfn-lint-action@v2
26+
uses: ScottBrenner/cfn-lint-action@9636da81fb2e0cef75725d8dda11b0148940b7ae # v2.6.0
2527
- name: Run cloudformation lint
2628
run: cfn-lint -t stack.yml
27-
- name: Check dead links
28-
uses: tcort/github-action-markdown-link-check@v1
29+
- name: Run dead links check
30+
uses: tcort/github-action-markdown-link-check@e7c7a18363c842693fadde5d41a3bd3573a7a225 # v1.1.2
2931
with:
3032
folder-path: '.'
31-
config-file: 'markdown-link-check-config.yml'
32-
use-verbose-mode: 'yes'
33-
use-quiet-mode: 'yes'
33+
config-file: markdown-link-check-config.yml
34+
use-verbose-mode: yes
35+
use-quiet-mode: yes

0 commit comments

Comments
 (0)