Skip to content

Commit

Permalink
ci: reduce Github Action permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavkj committed Nov 1, 2023
1 parent 3b3e9c0 commit 4af7152
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Testing Coverage
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
name: Test and Coverage
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ on:
branches:
- master

permissions:
contents: read

name: release
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # needed for release-please
pull-requests: write # needed for release-please and github-release-commenter
steps:
- uses: GoogleCloudPlatform/[email protected]
id: release
Expand Down

0 comments on commit 4af7152

Please sign in to comment.