Skip to content

Commit

Permalink
restrict permissions at top level
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveromahony committed May 8, 2024
1 parent 84a3b6b commit e0727ef
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,18 @@ on:
- reopened
- synchronize

permissions:
contents: read

env:
GOLANGCI_LINT_VERSION: 'v1.54.2'
NFPM_VERSION: 'v2.32.0'

jobs:
lint:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
name: Lint
runs-on: ubuntu-22.04
steps:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/label-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request_target:
types: [opened, reopened, synchronize]

permissions: # added using https://github.com/step-security/secure-repo
contents: read

jobs:
label-pr:
permissions:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:

jobs:
update-draft:
permissions:
contents: write
pull-requests: write
name: Update Release
runs-on: ubuntu-22.04
steps:
Expand Down

0 comments on commit e0727ef

Please sign in to comment.