Thanks to visit codestin.com
Credit goes to github.com

Skip to content

helm chart publisher: use proper ref for checkout #12392

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

Conversation

valentijnscholten
Copy link
Member

The helm chart publish step had a hardcoded ref: master on the checkout step.

Now that we have the nightly-dev builds merged and enabled, this means the wrong ref is checked out for the helm cart publishing. It overwrites the latest release info in the helm chart.

This PR fixes the checkout ref.

For now I have disabled the nightly-dev builds and I've regenerated the helm-chart for 2.46.0:

Thanks @kiblik for raising this and working together on a fix.

Copy link

dryrunsecurity bot commented May 6, 2025

DryRun Security

This pull request contains a potential workflow injection risk in the GitHub Actions workflow file where an attacker might manipulate the release number input to specify arbitrary branches during checkout, which could introduce a security vulnerability if proper input validation is not implemented.

💭 Unconfirmed Findings (1)
Vulnerability Potential Workflow Injection Risk
Description In the .github/workflows/release-x-manual-helm-chart.yml workflow file, a dynamic reference using ${{ inputs.release_number }} could allow an attacker to specify arbitrary branches during checkout, potentially introducing a security vulnerability if input validation is not strictly enforced.

All finding details can be found in the DryRun Security Dashboard.

mtesauro
mtesauro previously approved these changes May 6, 2025
@mtesauro mtesauro dismissed their stale review May 6, 2025 16:30

Didn't catch the failing tests

@valentijnscholten
Copy link
Member Author

Didn't catch the failing tests

They seem to pass.

@Maffooch Maffooch requested review from hblankenship and dogboat May 6, 2025 16:52
Copy link
Contributor

@mtesauro mtesauro left a comment

Choose a reason for hiding this comment

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

Approved

@valentijnscholten valentijnscholten merged commit 662fbb0 into DefectDojo:bugfix May 7, 2025
76 checks passed
Maffooch added a commit that referenced this pull request May 7, 2025
* Update versions in application files

* ui: fix "retrieve my username" typo (#12368)

* Minor Semgrep connector docs tweaks (#12373)

* jira push: log inactive/verified message to debug (#12376)

* helm chart publisher: use proper ref for checkout (#12392)

* tags: prevent validation from removing tags (#12400)

* tags: prevent validation from removing tags

* tags: prevent validation from removing tags smoke test

* tags: prevent validation from removing tags smoke test

* tags: prevent validation from removing tags remove ui test

* Update versions in application files

---------

Co-authored-by: DefectDojo release bot <[email protected]>
Co-authored-by: Cody Maffucci <[email protected]>
Co-authored-by: Jean-François YUEN <[email protected]>
Co-authored-by: Charles Neill <[email protected]>
Co-authored-by: valentijnscholten <[email protected]>
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.

5 participants