Skip to content

Bump step-security/harden-runner from 2.8.1 to 2.9.0 #510

Bump step-security/harden-runner from 2.8.1 to 2.9.0

Bump step-security/harden-runner from 2.8.1 to 2.9.0 #510

Workflow file for this run

name: Tests
on:
pull_request_target:
branches:
- 'main'
push:
branches:
- 'main'
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
terraform:
- '1.3.*'
- '1.2.*'
- '1.1.*'
- '1.0.*'
permissions:
contents: read
id-token: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
if: "contains(github.event_name, 'pull_request')"
with:
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- name: checkout from push event
if: github.event_name == 'push'
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: ./go.mod
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false
- run: go mod download
- run: go build -v .
- run: TF_ACC=1 go test -v -cover ./internal/provider/