-
Notifications
You must be signed in to change notification settings - Fork 60
44 lines (37 loc) · 1.47 KB
/
gatekeeper.yml
File metadata and controls
44 lines (37 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit
- name: Set up Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version: "1.24"
check-latest: true
- name: Check out code into the Go module directory
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
path: go/src/github.com/open-policy-agent/frameworks
- name: Check out Gatekeeper default branch
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
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 native-test
working-directory: go/src/github.com/open-policy-agent/gatekeeper