Secure GitHub workflows
This commit is contained in:
7
.github/workflows/golangci-lint.yaml
vendored
7
.github/workflows/golangci-lint.yaml
vendored
@@ -5,9 +5,12 @@ jobs:
|
||||
golangci-lint:
|
||||
name: lint
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read # for actions/checkout to fetch code
|
||||
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v2
|
||||
uses: golangci/golangci-lint-action@5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018
|
||||
with:
|
||||
only-new-issues: true
|
||||
|
||||
Reference in New Issue
Block a user