Skip to content

Commit

Permalink
Merge pull request #2389 from turrisxyz/setup-permissions
Browse files Browse the repository at this point in the history
chore: Set permissions for GitHub actions
  • Loading branch information
EmilienM committed May 3, 2022
2 parents 19ba3dc + 4710e38 commit 84a4f7a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/gomod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
on: [push, pull_request]
name: go mod
permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reauth-retests.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
on: [push, pull_request]
name: Reauth retests
permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
on: [push, pull_request]
name: Unit Testing
permissions:
contents: read

jobs:
test:
permissions:
checks: write # for shogo82148/actions-goveralls to create a new check based on the results
contents: read # for actions/checkout to fetch code
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -43,6 +49,8 @@ jobs:
parallel: true

finish:
permissions:
checks: write # for shogo82148/actions-goveralls to create a new check based on the results
needs: test
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 84a4f7a

Please sign in to comment.