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

fix(ci): Sanitize PR head.ref #5013

Merged
merged 1 commit into from Dec 31, 2023
Merged

fix(ci): Sanitize PR head.ref #5013

merged 1 commit into from Dec 31, 2023

Conversation

AdnaneKhan
Copy link
Contributor

This fixes a minor GitHub Actions workflow injection vulnerability by sanitizing the branch name from the PR head.

I'm just making a PR because most risk is mitigated as the workflow does not use secrets and the GITHUB_TOKEN permissions are restricted to pull-requests: write and issues: write. The worst an attacker could do is modify other PR descriptions, titles, mess with issues - a nuisance but not a supply chain attack.

Release Note

NONE

@oscerd oscerd merged commit e6dad5d into apache:main Dec 31, 2023
@oscerd
Copy link
Contributor

oscerd commented Dec 31, 2023

Thanks

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.

None yet

2 participants