Skip to content
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

cicd: setup trivy scan and call gh-pages URL with results #526

Open
d-koppenhagen opened this issue Dec 25, 2024 · 5 comments
Open

cicd: setup trivy scan and call gh-pages URL with results #526

d-koppenhagen opened this issue Dec 25, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@d-koppenhagen
Copy link
Member

In order to demo and also scan the used dockerfile, we could make use of https://github.com/aquasecurity/trivy-action

@Morl99
Copy link
Contributor

Morl99 commented Jan 22, 2025

Unfortunately, using the actions artifacts does not seem to work, since the only way to download them is by using a zip file, and the explorer does not support zip files. See https://github.com/actions/upload-artifact?tab=readme-ov-file#zip-archives for documentation on this. Do you have any other ideas @d-koppenhagen or do we want to revert the changes from #527 and close this issue as won't fix?

@d-koppenhagen
Copy link
Member Author

Ahhh... I remember, I stumbled over this.
Unfortunately there seems to be no way to get the raw artifacts.

I think we have three options:

  1. upload the artifacts somewhere else.. wehrte? Probably a service where it's stored only temporarily is good enough (1d?)
  2. accept this technical limit
  3. add a UI feature which accepts a zip file and unzips it

@d-koppenhagen
Copy link
Member Author

Candidates for (1):

@Morl99
Copy link
Contributor

Morl99 commented Jan 23, 2025

I don't really like the idea of using an external service for this. How about we use a special branch and publish the artifacts there and then use a raw URL to load them. This is basically what the github pages branch does. We would need to build a step that checks out the branch and adds the file and then commit/pushes. We could use a timestamp as a folder, that way we can write a cleanup job if we ever need it.

This can be done with a combination of the checkout and the add and commit actions.

@d-koppenhagen
Copy link
Member Author

This sound like a good idea to me!
Something like job-artifacts? We could also use the job id, then we can trace back the results to where they have been created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants