-
Notifications
You must be signed in to change notification settings - Fork 233
tests: add script to update FIPS image in test-fips
workflow
#4736
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
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If possible, I'd suggest to use a more local friednly approach, so it's possible to reproduce the same CI buidl locally
.github/dependabot.yml
Outdated
directory: "/" | ||
directories: | ||
- "/" | ||
- ".github/workflows" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if the package-ecosystem: 'docker'
supports github workflows:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was naive. Thanks for the info. I'll revert this then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've created a script to update the sha value in the workflow file. For now I'll run it manually.
e006d1e
test-fips
workflow
const imageRef = 'docker.elastic.co/wolfi/chainguard-base-fips:latest'; | ||
|
||
// Get the latest and extract the SHA | ||
const out = execSync(`docker image pull ${imageRef}`, { encoding: 'utf-8' }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could perhaps use this command to resolve the digest without installing:
% docker buildx imagetools inspect docker.elastic.co/wolfi/chainguard-base-fips:latest
Name: docker.elastic.co/wolfi/chainguard-base-fips:latest
MediaType: application/vnd.oci.image.index.v1+json
Digest: sha256:b30d05c61d6a318e15113d8542a745acb605941a5cb8b1321228ff671fc4a3c9
Manifests:
Name: docker.elastic.co/wolfi/chainguard-base-fips:latest@sha256:f36b3fc08b2759b07a6a9c907f9b2b327abd393ed56bbc1569fbbdbc0d49bc1b
MediaType: application/vnd.oci.image.manifest.v1+json
Platform: linux/amd64
Name: docker.elastic.co/wolfi/chainguard-base-fips:latest@sha256:29ba15059f84be168cdd1785583a93cf7c01c6d84f441927e691e36bd441b61e
MediaType: application/vnd.oci.image.manifest.v1+json
Platform: linux/arm64
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a good idea. I merged this PR to get an updated sha and stop the failures of the. test-fips.yml
workflow. But I'll do a follow up PR to change use this command and run it periodically with a cron expression.
test-fips
workflow does use a wolfi image to perform the tests. This image hasn't been updated in months being the follwing PR the last update #4525Docker scans were added in #4465 but
it seems it stopped from workingactually they never worked.This PR adds:
an update in dependabot to scan in root and also workflow folders for docker image updates.test-fips.yml
workflowChecklist