Skip to content

SEC-090: Automated trusted workflow pinning (2024-10-14) #632

SEC-090: Automated trusted workflow pinning (2024-10-14)

SEC-090: Automated trusted workflow pinning (2024-10-14) #632

Workflow file for this run

---
name: Unit Tests
permissions:
contents: read
pull-requests: read
on:
pull_request:
types: ['opened', 'synchronize']
paths:
- '.github/workflows/unit-test.yaml'
- 'vendor/**'
- '**.go'
concurrency:
group: 'unit-${{ github.head_ref }}'
cancel-in-progress: true
jobs:
test:
runs-on: custom-linux-large
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: ./.go-version
- run: bash scripts/gogetcookie.sh
- run: make test
env:
GITHUB_ACTIONS_STAGE: "UNIT_TESTS"
save-artifacts-on-fail:
if: ${{ needs.test.result }} == 'failure'
uses: ./.github/workflows/save-artifacts.yaml
comment-on-fail:
if: ${{ needs.test.result }} == 'failure'
uses: ./.github/workflows/comment-failure.yaml