-
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@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
with:
egress-policy: audit
- name: Set up Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: "1.25"
check-latest: true
- name: Check out code into the Go module directory
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: go/src/github.com/open-policy-agent/frameworks
- name: Check out Gatekeeper default branch
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.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 native-test
working-directory: go/src/github.com/open-policy-agent/gatekeeper