Skip to content

Commit bf955cc

Browse files
authored
Merge pull request #26 from scop/chore/ci-tightening
chore(ci): tighten permissions and credential storage
2 parents 7f15580 + 43127b1 commit bf955cc

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/check-tag.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ on:
55
tags:
66
- "*"
77

8+
permissions: {}
9+
810
jobs:
911
check:
1012
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
1115
steps:
1216
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17+
with:
18+
persist-credentials: false
1319
- name: Run checks
1420
run: |
1521
grep -P --color=always "\s+(?<=rev: )$GITHUB_REF_NAME$" README.md

.github/workflows/check.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@ on:
66
branches:
77
- main
88

9+
permissions: {}
10+
911
jobs:
1012
test:
1113
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
1216
steps:
1317
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18+
with:
19+
persist-credentials: false
1420
# No caching as we're expected to run rarely
1521
- name: Install dependencies and run checks
1622
run: |

0 commit comments

Comments
 (0)