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

ci: Fix CI workflows to prevent script injection #4046

Merged
merged 2 commits into from
Sep 29, 2023

Conversation

yiannistri
Copy link
Contributor

@yiannistri yiannistri commented Sep 29, 2023

What changed?
Introduced an intermediate environment variable to prevent script injection in CI workflows. See https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable for more details.

Why was this change made?
To prevent script injection in CI. Also to address issues such as https://github.com/weaveworks/weave-gitops/security/code-scanning/3781

How was this change implemented?
By introducing an intermediate environment variable.

How did you validate the change?
CI

Release notes
N/A

Documentation Changes
N/A

@yiannistri yiannistri merged commit 9281d45 into main Sep 29, 2023
21 checks passed
@yiannistri yiannistri deleted the fix-dangerous-workflows branch September 29, 2023 16:01
@foot foot mentioned this pull request Oct 9, 2023
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