chore: bump the k8s group across 1 directory with 6 updates #1441
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: gatekeeper_test | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
gk-test: | |
name: "[Informative] Gatekeeper Test" | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
- name: Set up Go | |
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version: "1.22" | |
check-latest: true | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
path: go/src/github.com/open-policy-agent/frameworks | |
- name: Check out Gatekeeper default branch | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
repository: open-policy-agent/gatekeeper | |
path: go/src/github.com/open-policy-agent/gatekeeper | |
- name: Update Frameworks dependency in Gatekeeper | |
run: | | |
go mod edit -replace github.com/open-policy-agent/frameworks/constraint=${GITHUB_WORKSPACE}/go/src/github.com/open-policy-agent/frameworks/constraint | |
go mod tidy | |
go mod vendor | |
working-directory: go/src/github.com/open-policy-agent/gatekeeper | |
- name: Make test | |
run: make test | |
working-directory: go/src/github.com/open-policy-agent/gatekeeper |