Skip to content

Bump github/codeql-action from 3.27.0 to 3.27.4 #216

Bump github/codeql-action from 3.27.0 to 3.27.4

Bump github/codeql-action from 3.27.0 to 3.27.4 #216

Workflow file for this run

name: ci-go-lint
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
schedule:
- cron: "0 0 * * *"
permissions:
contents: read
jobs:
go_lint:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
if: github.event.pull_request.draft == false || github.event_name == 'push'
name: lint
runs-on: ubuntu-20.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- name: Checkout Code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Get Go Version
run: |
#!/bin/bash
GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
- name: Setup Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: ${{ env.GOVERSION }}
- name: golang-lint
env:
GOGC: 10
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
with:
version: latest
only-new-issues: true
args: --timeout=10m