🌱 cron: don't write anything for projects without URL (#4095) #2472
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: golangci-lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
pull-requests: read # Use with `only-new-issues` option. | |
env: | |
GO_VERSION: 1.22 | |
jobs: | |
golangci: | |
name: check-linter | |
runs-on: ubuntu-latest | |
steps: | |
- uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1 | |
with: | |
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 | |
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
cache: false # golangci-lint maintains its own cache | |
- name: set golangci-lint version # keep in sync with tools/go.mod | |
run: | | |
echo "GOLANGCI_LINT_VERSION=$(cd tools; go list -m -f '{{ .Version }}' github.com/golangci/golangci-lint)" >> "$GITHUB_ENV" | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@38e1018663fa5173f3968ea0777460d3de38f256 # v5.3.0 | |
with: | |
version: ${{ env.GOLANGCI_LINT_VERSION }} | |
only-new-issues: true |