Skip to content

SEC-090: Automated trusted workflow pinning (2025-02-03) #240

SEC-090: Automated trusted workflow pinning (2025-02-03)

SEC-090: Automated trusted workflow pinning (2025-02-03) #240

Workflow file for this run

# Continuous integration handling for Go
name: ci-go
on:
pull_request:
paths:
- .github/workflows/ci-go.yml
- go.mod
- '**.go'
- 'internal/cmd/testdata/**'
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
env:
GOPRIVATE: github.com/hashicorp/terraform-plugin-codegen-spec
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version-file: 'go.mod'
- run: go mod download
- run: go test -coverprofile=coverage.out ./...
- run: go tool cover -html=coverage.out -o coverage.html
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: go-coverage
path: coverage.html