Skip to content

Commit

Permalink
Harden workflow permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Jan 22, 2024
1 parent 359d3f6 commit d3cf0a5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- dependabot/**
pull_request:
workflow_dispatch:
permissions:
contents: read
defaults:
run:
shell: bash
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- master
permissions:
contents: read
packages: write
defaults:
run:
shell: bash
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
release:
types:
- published
permissions:
contents: read
defaults:
run:
shell: bash
Expand Down

0 comments on commit d3cf0a5

Please sign in to comment.