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

Create trivy-all-slack.yml #94

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Create trivy-all-slack.yml #94

wants to merge 2 commits into from

Conversation

zickau
Copy link

@zickau zickau commented Jun 22, 2022

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

zickau and others added 2 commits June 22, 2022 11:27
workflow file for slack messages after weekly trivy scan, project context IDunion (Germany)
Signed-off-by: Sebastian Schmittner <sebastian.schmittner@eecc.de>
Copy link
Contributor

@Echsecutor Echsecutor left a 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 }}'
Copy link
Contributor

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.

Suggested change
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'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove commented lines

Suggested change
#image-ref: 'ghcr.io/idunion/indy-node-container/indy_node:latest-ubuntu18'

@@ -1,15 +1,12 @@
name: Trivy Analysis (indy_node:latest)
Copy link
Contributor

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'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove commented lines

Suggested change
#output: 'results.json'

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

Successfully merging this pull request may close these issues.

2 participants