Skip to content

Commit 64a2800

Browse files
committed
ci: simplify pr check steps
Signed-off-by: Michael Beemer <[email protected]>
1 parent 696e2ed commit 64a2800

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

.github/workflows/pr-checks.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ on:
99
pull_request:
1010
paths-ignore:
1111
- '**.md'
12-
env:
13-
# Default minimum version of Go to support.
14-
DEFAULT_GO_VERSION: "~1.21"
1512

1613
permissions:
1714
contents: read
@@ -24,7 +21,7 @@ jobs:
2421
- name: Install Go
2522
uses: actions/setup-go@v5
2623
with:
27-
go-version: ${{ env.DEFAULT_GO_VERSION }}
24+
go-version-file: 'go.mod'
2825

2926
- name: Setup Environment
3027
run: |
@@ -62,25 +59,25 @@ jobs:
6259
uses: actions/checkout@v4
6360

6461
- name: Set up QEMU
65-
uses: docker/setup-qemu-action@master
62+
uses: docker/setup-qemu-action@v3
6663
with:
6764
platforms: all
6865
- name: Set up Docker Buildx
6966
id: buildx
70-
uses: docker/setup-buildx-action@master
67+
uses: docker/setup-buildx-action@v3
7168
- name: Build
7269
uses: docker/build-push-action@v4
7370
with:
7471
builder: ${{ steps.buildx.outputs.name }}
7572
context: .
76-
outputs: type=docker,dest=${{ github.workspace }}/open-feature-operator-local.tar
73+
push: false
7774
tags: open-feature-operator-local:${{ github.sha }}
7875
cache-from: type=gha,scope=${{ github.ref_name }}-ofo
7976
cache-to: type=gha,scope=${{ github.ref_name }}-ofo
8077
- name: Run Trivy vulnerability scanner
81-
uses: aquasecurity/trivy-action@master
78+
uses: aquasecurity/trivy-action@0.27.0
8279
with:
83-
input: /github/workspace/open-feature-operator-local.tar
80+
image-ref: open-feature-operator-local:${{ github.sha }}
8481
format: "template"
8582
template: "@/contrib/sarif.tpl"
8683
output: "trivy-results.sarif"
@@ -89,11 +86,6 @@ jobs:
8986
uses: github/codeql-action/upload-sarif@v2
9087
with:
9188
sarif_file: "trivy-results.sarif"
92-
- name: Upload image as artifact
93-
uses: actions/upload-artifact@v3
94-
with:
95-
name: open-feature-operator-local-${{ github.sha }}
96-
path: ${{ github.workspace }}/open-feature-operator-local.tar
9789

9890
e2e_tests:
9991
name: E2E Tests

0 commit comments

Comments
 (0)