Skip to content

feat(stesol-580): add blackduck workflow - #131

Open
NeethuESim wants to merge 47 commits into
secure-buildfrom
stesol-580-blackduck-sbom
Open

feat(stesol-580): add blackduck workflow#131
NeethuESim wants to merge 47 commits into
secure-buildfrom
stesol-580-blackduck-sbom

Conversation

@NeethuESim

@NeethuESim NeethuESim commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Add blackduck workflow. Scan resulting from PR merge will be available at Arm BlackDuck UI - https://arm.app.blackduck.com/api/risk-profile-dashboard

Co-authored-by: NeethuESim <3488970+NeethuESim@users.noreply.github.com>
Comment thread .github/workflows/black-duck-security-scan-ci.yml Fixed
Comment thread .github/workflows/black-duck-security-scan-ci.yml Fixed
Comment thread .github/workflows/black-duck-security-scan-ci.yml Fixed
Comment thread .github/workflows/black-duck-security-scan-ci.yml Fixed
Comment thread .github/workflows/black-duck-security-scan-ci.yml Fixed
Comment thread .github/workflows/black-duck-security-scan-ci.yml Fixed

@brikin01 brikin01 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks pretty good, just a few small changes/questions!

Comment thread .github/workflows/black-duck-security-scan-ci.yml Outdated
Comment thread .github/workflows/black-duck-security-scan-ci.yml
Comment thread .github/workflows/black-duck-security-scan-ci.yml Outdated
Comment thread .github/workflows/black-duck-security-scan-ci.yml
Comment thread .github/workflows/black-duck-security-scan-ci.yml Fixed
Comment thread .github/workflows/black-duck-security-scan-ci.yml Fixed
@NeethuESim
NeethuESim marked this pull request as draft August 19, 2026 15:59
Comment thread .github/workflows/black-duck-security-scan-ci.yml Fixed
Comment thread .github/workflows/black-duck-security-scan-ci.yml Fixed
@NeethuESim
NeethuESim marked this pull request as ready for review August 20, 2026 19:14

@brikin01 brikin01 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for all the changes, seems to be in a pretty good spot!

I left a few comments about policy-failure behavior and cleaning up the temporary secure-build configuration.

This looks like it covers the initial Black Duck setup shared by STESOL-576 and STESOL-580. I’m assuming the release-evidence side of STESOL-580, e.g. generating the complete SBOM for what we actually ship, will come in a follow-up PR tied into the release workflow. Is that what you had in mind?

Comment on lines +75 to +76
### Mark build status if policy violating issues are found
mark_build_status: 'success'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why do we mark the build status as success? I would think a violation would cause a failure?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

You are right, I will add the failure condition based on severity detected.

Comment on lines +14 to +17
branches: [ "main", "secure-build" ] # TODO: remove "secure-build" after merge into main
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main", "secure-build" ] # TODO: remove "secure-build" after merge into main

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We should be good to delete secure-build now (and also need to change the target branch of the PR to main)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I wasn't sure on this, let me check in slack. I can then directly create this PR against main instead of merge into secure build

github_token: ${{ secrets.GITHUB_TOKEN }}

### Mark build status if policy violating issues are found
mark_build_status: 'success'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Same question as previous

Comment on lines +85 to +86
- name: Upload Black Duck SARIF
if: ${{ github.event_name != 'pull_request' }}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If we do change policy violations to fail the scan, should this step use an always()/!cancelled() condition so the SARIF report is still uploaded and the findings remain visible?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, will make sure we have report generated even after policy violation. I will open another PR for the policy violations.

@NeethuESim

Copy link
Copy Markdown
Collaborator Author

Thanks for all the changes, seems to be in a pretty good spot!

I left a few comments about policy-failure behavior and cleaning up the temporary secure-build configuration.

This looks like it covers the initial Black Duck setup shared by STESOL-576 and STESOL-580. I’m assuming the release-evidence side of STESOL-580, e.g. generating the complete SBOM for what we actually ship, will come in a follow-up PR tied into the release workflow. Is that what you had in mind?

Yes, this PR only covers the initial integration. Will open incremental PRs for the remaining items.

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.

4 participants