-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
GHA Artifacts: Update to v4 #11205
GHA Artifacts: Update to v4 #11205
Conversation
DryRun Security SummaryThe pull request focuses on updating the GitHub Actions workflows used for testing and deployment of the DefectDojo application, including upgrading action versions, improving artifact management, updating Kubernetes deployment, and changes to the release drafting workflow, with a focus on maintaining security considerations throughout the changes. Expand for full summarySummary: The code changes in this pull request are primarily focused on updates to the GitHub Actions workflows used for various testing and deployment tasks related to the DefectDojo application. The changes include:
From an application security perspective, the changes do not introduce any obvious security vulnerabilities. However, it's important to maintain a vigilant approach and consider the following security aspects:
Overall, the changes in this pull request appear to be focused on improving the reliability and maintainability of the testing and deployment workflows, which can have a positive impact on the application's security posture. However, it's crucial to maintain a comprehensive security review process and address any potential security concerns that may arise. Files Changed:
Code AnalysisWe ran Riskiness🟢 Risk threshold not exceeded. |
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.
Approved
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 entirely sure of the behavior of merge-multiple
based on the migration documentation, but unless I'm reading something wrong it seems like we need to add the built-docker-image-
prefix to the images we try to download+load into Docker
I also wonder if we need to specify the overwrite
key on upload since we're not including something like the workflow run ID/etc in the artifact name.
docker load -i built-docker-image/nginx-${{ matrix.os }}_img | ||
docker load -i built-docker-image/django-${{ matrix.os }}_img | ||
docker load -i built-docker-image/integration-tests-debian_img |
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.
Will this actually trim the built-docker-image-
prefix from these image names, or do we need something like this instead? Wasn't clear to me from the migration guide...
docker load -i built-docker-image/nginx-${{ matrix.os }}_img | |
docker load -i built-docker-image/django-${{ matrix.os }}_img | |
docker load -i built-docker-image/integration-tests-debian_img | |
docker load -i built-docker-image/built-docker-image-nginx-${{ matrix.os }}_img | |
docker load -i built-docker-image/built-docker-image-django-${{ matrix.os }}_img | |
docker load -i built-docker-image/built-docker-image-integration-tests-debian_img |
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 don't believe the prefix is trimmed. Do we need the prefix to be trimmed?
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.
Also I didn't realize when I left the last comment, but the names of the images themselves do not have a built-docker-image-
prefix. The name of the image stored is captured in the path
entry:
path: ${{ matrix.docker-image }}-${{ matrix.os }}_img
This value is unchanged in this PR
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.
Ahh, I think I mixed up the with
(artifact name) and the path
docker load -i built-docker-image/nginx-${{ matrix.os }}_img | ||
docker load -i built-docker-image/django-${{ matrix.os }}_img |
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.
Same question as above..
docker load -i built-docker-image/nginx-${{ matrix.os }}_img | |
docker load -i built-docker-image/django-${{ matrix.os }}_img | |
docker load -i built-docker-image/built-docker-image-nginx-${{ matrix.os }}_img | |
docker load -i built-docker-image/built-docker-image-django-${{ matrix.os }}_img |
docker load -i built-docker-image/nginx-${{ matrix.os }}_img | ||
docker load -i built-docker-image/django-${{ matrix.os }}_img |
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.
Same as above..
docker load -i built-docker-image/nginx-${{ matrix.os }}_img | |
docker load -i built-docker-image/django-${{ matrix.os }}_img | |
docker load -i built-docker-image/built-docker-image-nginx-${{ matrix.os }}_img | |
docker load -i built-docker-image/built-docker-image-django-${{ matrix.os }}_img |
Why would we need the prefix? To make the names of the images more descriptive?
I am not sure about this one. With the upcoming brownouts next week, I think it would be preferable to get this merged in, and then investigate how the overwrite flag will add value Also please keep in mind, if the docker images are able to be downloaded so that the unit tests can run, then this implementation is functioning as expected. Please see previous failed implementations in the commit history to see what all went into this 😄 |
@cneill we can discuss how this can be iterated on after the release today 😄 |
With the upcoming deprecations of version 3 of
actions/upload-artifact
andactions/download-artifact
, we must get to v4 by following the migration guide[sc-8285]