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

feat: uds-security-hub scan common action #222

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

Conversation

partkyle
Copy link

This is an action that is meant to be used for scanning a zarf package that is created by a workflow.

Here is an example repo that is using it.

@partkyle partkyle requested a review from a team as a code owner September 6, 2024 18:15
@partkyle
Copy link
Author

partkyle commented Sep 9, 2024

@Racer159 @zachariahmiller any more feedback on this PR for things that need changed?

@zachariahmiller
Copy link
Contributor

@Racer159 @zachariahmiller any more feedback on this PR for things that need changed?

@partkyle I'm out this week so I will defer to @Racer159 on this. Thanks.

.github/workflows/test-security-hub-scan.yaml Outdated Show resolved Hide resolved
- name: build example package
id: setup
run: |
uds run create-nginx-package --no-progress
Copy link
Contributor

Choose a reason for hiding this comment

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

we should not rely on app-specific tasks in callable workflows (other apps should be able to use this flow as is without needing to add an extra create-nginx-package task)

Copy link
Author

Choose a reason for hiding this comment

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

I have changed it to a pull request triggered workflow, so it should be fine to use this task, correct?

Copy link
Contributor

Choose a reason for hiding this comment

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

That should be fine for now - eventually we will fix Maru and then this can be callable again with a reference to create:package

Copy link
Author

Choose a reason for hiding this comment

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

@Racer159 Ok, I think I have this resolved per your comments. Can you take a look?

.github/workflows/test-security-hub-scan.yaml Outdated Show resolved Hide resolved
@@ -55,3 +55,6 @@ jobs:
flavor: ${{ matrix.flavor }}
type: ${{ matrix.type }}
secrets: inherit # Inherits all secrets from the parent workflow.

test-security-hub-scan:
Copy link
Contributor

Choose a reason for hiding this comment

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

Thinking on this more I do think it would be good to split out into it's own workflow - this also does not matrix flavors so we will only get one result from it.

tasks/security-hub.yaml Outdated Show resolved Hide resolved
.github/actions/security-hub-scan/action.yaml Outdated Show resolved Hide resolved
.github/workflows/test-security-hub-scan.yaml Outdated Show resolved Hide resolved
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.

3 participants