Skip to content

Bump the patches group with 2 updates #31

Bump the patches group with 2 updates

Bump the patches group with 2 updates #31

name: "Copilot Setup Steps"
on:
workflow_dispatch:
push:
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml
permissions:
contents: read
packages: read
jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: "stable"
cache: false
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.14"
cache: "pip"
cache-dependency-path: sample-py-app/requirements.txt
- name: Go module cache
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: ~/go/pkg/mod
key: copilot-go-mod-${{ hashFiles('sample-go-app/go.sum', 'sample-go-app/tools/go.sum') }}
- name: Go build cache
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: ~/.cache/go-build
key: copilot-go-build-${{ hashFiles('sample-go-app/**/*.go', 'sample-go-app/go.mod', 'sample-go-app/go.sum', 'sample-go-app/tools/go.mod', 'sample-go-app/tools/go.sum') }}
restore-keys: |
copilot-go-build-
- name: Download dependencies
run: |
go -C sample-go-app mod download
go -C sample-go-app mod download -modfile tools/go.mod
pip install -r sample-py-app/requirements.txt
- name: Install golangci-lint
run: make install/lint
- name: Warm up govulncheck
run: go -C sample-go-app tool -modfile tools/go.mod govulncheck -version