Skip to content

Commit 26a4daa

Browse files
authored
Try to fix container scan reference position by moving from step to job (#15)
* Try to fix container scan reference position by moving from step to job * Upgrade workflow version * Upgrade workflow version * Upgrade version * Upgrade workflow versions * Upgrade workflow versions * Upgrade workflow version and upload/handover artifact to referenced worflow for vulnerability scans * Upgrade workflow version * Upgrade workflow version * Separate docker export and add job dependency * load container after build * Add extra build and export step * Upgrade workflow versions * Upgrade upload artifact action * Upgrade workflow versions
1 parent c894048 commit 26a4daa

File tree

4 files changed

+27
-7
lines changed

4 files changed

+27
-7
lines changed

.github/workflows/container-image-build-validation.yaml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,33 @@ jobs:
1818
- name: Set up Docker Buildx
1919
uses: docker/setup-buildx-action@v2
2020
- name: Test build
21-
uses: docker/build-push-action@v4
21+
uses: docker/build-push-action@v4.1.0
2222
with:
2323
push: false
24+
load: false
2425
context: .
2526
platforms: linux/amd64, linux/arm64
2627
tags: container-build:test
27-
- name: Container vulnerability scan
28-
uses: cybcon/github_workflows/.github/workflows/container-vulnerability-scan.yaml@v1.1.1
28+
- name: Test build and export for further validation
29+
uses: docker/build-push-action@v4.1.0
2930
with:
30-
image: container-build:test
31+
push: false
32+
load: true
33+
context: .
34+
tags: container-build:test
35+
outputs: type=docker,dest=/tmp/container.tar
36+
- name: Upload container image as artifact
37+
uses: actions/upload-artifact@v3.1.2
38+
with:
39+
name: container-build
40+
path: /tmp/container.tar
41+
scan:
42+
name: Container vulnerability scan
43+
needs: container-build
44+
uses: cybcon/github_workflows/.github/workflows/container-vulnerability-scan.yaml@v1.1.10
45+
with:
46+
image_name: container-build:test
47+
image_artifact_filename: container.tar
48+
image_artifact_name: container-build
49+
login_dockerhub: false
50+
trivy_tag: latest

.github/workflows/pre-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ on:
66
- main
77
jobs:
88
pre-commit:
9-
uses: cybcon/github_workflows/.github/workflows/pre-commit.yaml@v1.1.1
9+
uses: cybcon/github_workflows/.github/workflows/pre-commit.yaml@v1.1.10

.github/workflows/release-from-label.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ on:
55
- closed
66
jobs:
77
release:
8-
uses: cybcon/github_workflows/.github/workflows/release-from-label.yaml@v1.1.1
8+
uses: cybcon/github_workflows/.github/workflows/release-from-label.yaml@v1.1.10

.github/workflows/release-label-validation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ on:
1010
- unlabeled
1111
jobs:
1212
release-label-validation:
13-
uses: cybcon/github_workflows/.github/workflows/release-label-validation.yaml@v1.1.1
13+
uses: cybcon/github_workflows/.github/workflows/release-label-validation.yaml@v1.1.10

0 commit comments

Comments
 (0)