Set permissions for GitHub actions (#7984)
This limits the damage that a compromised GitHub action could do. See https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
This commit is contained in:
parent
8d04565394
commit
f4a7ba967e
4 changed files with 12 additions and 0 deletions
3
.github/workflows/commit-validation.yml
vendored
3
.github/workflows/commit-validation.yml
vendored
|
@ -1,6 +1,9 @@
|
|||
name: commit-validation
|
||||
on: [ push, pull_request ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
check-commit-msg-length:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
3
.github/workflows/format-validation.yml
vendored
3
.github/workflows/format-validation.yml
vendored
|
@ -26,6 +26,9 @@ on:
|
|||
- 'test/tables/planets.jats_archiving'
|
||||
- 'test/tables/students.jats_archiving'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
jats:
|
||||
name: JATS
|
||||
|
|
3
.github/workflows/lint.yml.bkp
vendored
3
.github/workflows/lint.yml.bkp
vendored
|
@ -14,6 +14,9 @@ on:
|
|||
- stack.yaml
|
||||
- .travis.yml
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Lint
|
||||
|
|
3
.github/workflows/release-candidate.yml
vendored
3
.github/workflows/release-candidate.yml
vendored
|
@ -5,6 +5,9 @@ on:
|
|||
branches:
|
||||
- 'rc/**'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
linux:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue