Skip to content

SEC-090: Automated trusted workflow pinning (2023-04-27) #171

SEC-090: Automated trusted workflow pinning (2023-04-27)

SEC-090: Automated trusted workflow pinning (2023-04-27) #171

Workflow file for this run

name: golangci-lint
on:
push:
tags:
- v*
branches:
- main
pull_request:
permissions:
contents: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: Determine Go version
id: get-go-version
run: |
echo "go-version=$(cat .go-version)" >> $GITHUB_OUTPUT
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
with:
go-version: ${{ steps.get-go-version.outputs.go-version }}
- name: golangci-lint
uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 # v3.4.0
with:
version: v1.50.1
skip-cache: ${{ env.ACT == 'true' }}