Skip to content

Commit

Permalink
Merge pull request #75 from flanksource/update-workflow-token-permiss…
Browse files Browse the repository at this point in the history
…ions

fix: set default token permissions for workflows
  • Loading branch information
moshloop authored Aug 3, 2023
2 parents dd35862 + 5b785d4 commit eba0384
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
on: pull_request
name: Build
# Declare default permissions as read only
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
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ on:
pull_request:

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

0 comments on commit eba0384

Please sign in to comment.