Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2235 from turrisxyz/naveen/feat/set-perms-actions
Browse files Browse the repository at this point in the history
Set permissions for GitHub actions
  • Loading branch information
paganotoni authored Apr 8, 2022
2 parents bb0afcb + 7e094f6 commit e8274e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ on:
schedule:
- cron: "30 1 * * *"

permissions:
contents: read

jobs:
stale:
permissions:
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
- main
pull_request:

permissions:
contents: read

jobs:
tests-off:
name: ${{ matrix.os }} - Go v${{ matrix.go-version }}
Expand Down

0 comments on commit e8274e6

Please sign in to comment.