Skip to content

ci: Fix CI workflows to prevent script injection#4046

Merged
yiannistri merged 2 commits intomainfrom
fix-dangerous-workflows
Sep 29, 2023
Merged

ci: Fix CI workflows to prevent script injection#4046
yiannistri merged 2 commits intomainfrom
fix-dangerous-workflows

Conversation

@yiannistri
Copy link
Copy Markdown
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 force-pushed the fix-dangerous-workflows branch from 9921447 to b323564 Compare September 29, 2023 13:13
@yiannistri yiannistri requested a review from yitsushi September 29, 2023 13:15
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