Skip to content

Commit

Permalink
fix: set default token permissions for workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Vibhor Dabas committed Aug 5, 2023
1 parent 151b0de commit 2cfbfee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
on: pull_request
name: Build
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Lint
on:
pull_request:

permissions: read-all
jobs:
golangci:
name: lint
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
on:
pull_request:

permissions:
contents: read
checks: write
issues: write
pull-requests: write
name: Test
jobs:
test:
Expand Down

0 comments on commit 2cfbfee

Please sign in to comment.