Skip to content

Commit

Permalink
restrict pipeline permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
dklimpel authored May 21, 2024
1 parent 31bc919 commit 53ffe35
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
branches:
- master
- "/^v\\d+\\.\\d+(\\.\\d+)?(-\\S*)?$/"

permissions:
contents: read
pull-requests: read

jobs:
golangci:
name: lint
Expand All @@ -16,7 +21,7 @@ jobs:
with:
go-version-file: go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v5
uses: golangci/golangci-lint-action@v6
with:
version: latest
only-new-issues: true

0 comments on commit 53ffe35

Please sign in to comment.