Bump actions/setup-go from 5.0.2 to 5.1.0 #163
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request_target: # To test cosign signing. | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
push: | |
branches: ['main'] | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
if: github.event_name == 'pull_request_target' | |
with: | |
ref: refs/pull/${{ github.event.pull_request.number }}/merge | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
if: github.event_name != 'pull_request_target' | |
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version: '1.22' | |
check-latest: true | |
- uses: chainguard-dev/actions/setup-registry@main | |
with: | |
port: 5000 | |
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2 | |
with: | |
terraform_version: '1.8.*' | |
terraform_wrapper: false | |
- working-directory: ./examples/static | |
env: | |
TF_VAR_target_repository: localhost:5000/static | |
TF_VAR_verify: ${{github.event_name == 'pull_request_target'}} | |
run: | | |
terraform init -upgrade | |
terraform apply -auto-approve | |
# Test with archs and check_sbom=false | |
- working-directory: ./examples/static | |
env: | |
TF_VAR_target_repository: localhost:5000/static | |
TF_VAR_archs: '["x86_64"]' | |
TF_VAR_check_sbom: 'false' | |
TF_VAR_verify: ${{github.event_name == 'pull_request_target'}} | |
run: | | |
terraform init -upgrade | |
terraform apply -auto-approve |