github.com/jaypipes/ghw@v0.21.1/.github/workflows/lint.yml (about) 1 name: lint 2 3 on: 4 push: 5 branches: [ main ] 6 pull_request: 7 branches: [ main ] 8 9 permissions: 10 contents: read 11 pull-requests: read # needed for only-new-issues option below 12 13 jobs: 14 lint: 15 runs-on: ubuntu-latest 16 steps: 17 - name: harden runner 18 uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2 19 with: 20 egress-policy: audit 21 disable-sudo: true 22 - name: checkout code 23 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 24 - name: setup go 25 uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 26 with: 27 go-version: 1.24 28 - name: lint 29 uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0 30 with: 31 version: v2.2.0 32 args: --timeout=5m0s --verbose 33 only-new-issues: true