Skip to content

chore: replicate locksmith workflow updates #1

chore: replicate locksmith workflow updates

chore: replicate locksmith workflow updates #1

name: "Copilot Setup Steps"
on:
workflow_dispatch:
push:
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml
jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
cache: false
- name: Cache Go modules and build cache
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: copilot-go-${{ hashFiles('go.sum', 'tools/go.sum') }}
restore-keys: copilot-go-
- name: Download Go module dependencies
run: |
go mod download
go mod download -modfile tools/go.mod
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.12.0
- name: Warm up govulncheck
run: go tool -modfile tools/go.mod govulncheck -version