Skip to content

Commit

Permalink
Ensure top-level permissions are not set to write-all
Browse files Browse the repository at this point in the history
  • Loading branch information
buberdds committed Mar 6, 2023
1 parent ef76686 commit e43e764
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [stable, master]

# disable secrets.GITHUB_TOKEN permissions
permissions: {}

jobs:
yarn_cache:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/dump-validators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
schedule:
- cron: '0 0 1 * *'

permissions: # Limit secrets.GITHUB_TOKEN permissions
contents: write
pull-requests: write

jobs:
dump-validators:
if: github.repository == 'oasisprotocol/oasis-wallet-web'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
pull_request:
branches: [stable, master]

permissions: # Limit secrets.GITHUB_TOKEN permissions
contents: write
pull-requests: write

env: # Comment env block if you do not want to apply fixes
# Apply linter fixes configuration
APPLY_FIXES: all # When active, APPLY_FIXES must also be defined as environment variable (in github/workflows/mega-linter.yml or other CI tool)
Expand Down

0 comments on commit e43e764

Please sign in to comment.