-
Notifications
You must be signed in to change notification settings - Fork 22
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
Create trivy-all-slack.yml #94
base: main
Are you sure you want to change the base?
Conversation
workflow file for slack messages after weekly trivy scan, project context IDunion (Germany)
Signed-off-by: Sebastian Schmittner <sebastian.schmittner@eecc.de>
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.
Most importantly: change the image-ref to scan the images in the HL ghcr
We should discuss in our next meeting if we want to replace the old scan reporting to github or have both
template: '@/contrib/sarif.tpl' | ||
output: 'trivy-indy-node-${{ matrix.os_version }}.sarif' | ||
#image-ref: 'ghcr.io/idunion/indy-node-container/indy_node:latest-ubuntu18' | ||
image-ref: 'ghcr.io/zickau/indy_node:latest-${{ matrix.os_version }}' |
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.
@zickau please run the scan on the images in the HL repo, i.e.
image-ref: 'ghcr.io/zickau/indy_node:latest-${{ matrix.os_version }}' | |
image-ref: 'ghcr.io/${{ needs.workflow_setup.outputs.repo_owner }}/indy-node-container/indy_node:latest-${{ matrix.os_version }}' |
format: 'template' | ||
template: '@/contrib/sarif.tpl' | ||
output: 'trivy-indy-node-${{ matrix.os_version }}.sarif' | ||
#image-ref: 'ghcr.io/idunion/indy-node-container/indy_node:latest-ubuntu18' |
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.
remove commented lines
#image-ref: 'ghcr.io/idunion/indy-node-container/indy_node:latest-ubuntu18' |
@@ -1,15 +1,12 @@ | |||
name: Trivy Analysis (indy_node:latest) |
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.
Why are you removing the name?
suggestion: keep
- name: 'Safe trivy-indy-node-${{ matrix.os_version }}.sarif' | ||
uses: actions/upload-artifact@v2 | ||
format: json | ||
#output: 'results.json' |
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.
remove commented lines
#output: 'results.json' |
Commit text: workflow file for slack messages after weekly trivy scan, project context IDunion (Germany)
This file was created to get Slack notifications on the IDunion project Slack workspace channel 'docker_indy-node'. The workflow is doing a weekly trivy scan and filters all high and critical CVEs and publishes them to the mentioned Slack channel. For that to work a secret webhook URL needs to be included in this repo. The name of the secret needs to be
SLACK_WEBHOOK_URL_IDU
corresponding to the name in the file. The webhook URL needs to be a secret otherwise it will be disabled.
Best regards
Sebastian