-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: embed docker scanning into argus builder action [OUTDATED] #284
Closed
hspitzley-czi
wants to merge
53
commits into
main
from
CCIE-3099-embed-docker-scanning-into-argus-builder-gh-actions
+88
−22
Closed
Changes from 41 commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
91bd171
feat: break argus-docker-build workflow into composite actions
hspitzley-czi 170834f
use composite actions in reusable workflow
hspitzley-czi e2f15bc
add checkouts
hspitzley-czi 57305fb
pin composite actions
hspitzley-czi 1fa107d
image uri and working directory support
hspitzley-czi a8184bb
move image scan to build stage
hspitzley-czi 74c9379
remove unused arg
hspitzley-czi 2d7cf50
pin 74c93798c163c312f0e0fcb813c04924ea2e215d
hspitzley-czi b7d8eaf
fix path join
hspitzley-czi 6fe6c2d
upgrade workflow
hspitzley-czi 74403de
Merge branch 'main' into CCIE-3097-make-argus-docker-builder-gh-actio…
hspitzley-czi c4f14a1
feat: embed docker scanning into argus builder action
hspitzley-czi 1452f01
add output for whether vulnerability threshold was exceeded
hspitzley-czi c68491c
output results
hspitzley-czi 6498306
add container scan step to argus docker build action
hspitzley-czi 9dda02a
use composite action with vulnerability scanning
hspitzley-czi 393c85f
try managed arm runner
hspitzley-czi 7800407
Revert "try managed arm runner"
hspitzley-czi d5f287c
bump container scan inspector dep
hspitzley-czi 64b3208
change image_uri format
hspitzley-czi 6c88980
use new version in workflow
hspitzley-czi 2e76635
back to image_uri
hspitzley-czi ba91051
workflow - back to image_uri
hspitzley-czi 4d5a6e7
try docker login
hspitzley-czi 11f4ade
workflow with docker login
hspitzley-czi 747a0ff
Merge branch 'main' into CCIE-3099-embed-docker-scanning-into-argus-b…
hspitzley-czi f968444
docker login without explicit creds
hspitzley-czi 186117b
workflow - docker login without explicit creds
hspitzley-czi 8461a2c
try local image with load: true
hspitzley-czi 300a5a1
try 8461a2ca27a313af1984f32f6d6b9df3b80607c8 - local image with load:…
hspitzley-czi 09df741
move 'load: true'
hspitzley-czi e0d6da6
docker-build - use version with 'load: true'
hspitzley-czi ce3d9de
workflow - use version with 'load: true'
hspitzley-czi 1c4976a
push false
hspitzley-czi b4b6079
docker-build - push false
hspitzley-czi e0cd558
workflow - push false
hspitzley-czi 557c7b9
no qemu
hspitzley-czi daba8ef
docker-build - no qemu
hspitzley-czi c387835
workflow - no qemu
hspitzley-czi bb9bb68
remove buildx setup
hspitzley-czi 9f972cd
Update .github/actions/argus-builder/docker-build/action.yml
hspitzley-czi bf5acfe
new runner tags
hspitzley-czi d5402bc
re-add buildx
hspitzley-czi dcd8089
use ARM64-dev runners
hspitzley-czi 6229e8c
fix image uri
hspitzley-czi 3f0d80b
debug logs
hspitzley-czi 9d51866
add 'issues: write' permission
hspitzley-czi c2b5a8e
change to 'pull-requests: read' perm
hspitzley-czi 341750b
add back 'issues: write'
hspitzley-czi a76e7db
pull-requests: write
hspitzley-czi c51705f
fix vuln report url
hspitzley-czi ff64f01
remove logs
hspitzley-czi 12cea78
better comment
hspitzley-czi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# EditorConfig helps developers define and maintain consistent coding styles across different editors and IDEs | ||
|
||
# Top-most EditorConfig file | ||
root = true | ||
|
||
# Set defaults for all file extensions | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
# Set specific yaml file settings | ||
[*.{yml,yaml}] | ||
indent_style = space | ||
indent_size = 2 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,13 @@ inputs: | |
description: 'whether to fail the action if vulnerabilities are found' | ||
required: false | ||
default: "true" | ||
outputs: | ||
vulnerability_threshold_exceeded: | ||
description: '1 if the vulnerability threshold was exceeded, 0 otherwise' | ||
value: ${{ steps.inspector.outputs.vulnerability_threshold_exceeded }} | ||
inspector_scan_results_markdown: | ||
description: 'path to the markdown file containing the Inspector scan results' | ||
value: ${{ steps.inspector.outputs.inspector_scan_results_markdown }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
|
@@ -38,7 +45,7 @@ runs: | |
role-duration-seconds: 1800 | ||
role-session-name: github-actions-inspector | ||
- name: Scan built image with Inspector | ||
uses: aws-actions/[email protected].0 | ||
uses: aws-actions/[email protected].2 | ||
id: inspector | ||
with: | ||
artifact_type: 'container' | ||
|
@@ -55,4 +62,4 @@ runs: | |
- name: Fail job if vulnerability threshold is exceeded | ||
if: contains(inputs.fail_on_vulnerabilities, 'true') | ||
shell: bash | ||
run: exit ${{ steps.inspector.outputs.vulnerability_threshold_exceeded }} | ||
run: exit ${{ steps.inspector.outputs.vulnerability_threshold_exceeded }} |
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium