| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
This PR addresses a zizmor/template-injection risk in the e2e-versions GitHub Actions workflow by removing direct ${{ ... }} interpolation from a bash run: block and routing the value through a step-level environment variable instead.
Changes:
| File | Description |
|---|---|
| .github/workflows/e2e-versions.yml | Moves Java 17 output usage into env to avoid direct expression interpolation in a bash run: block. |
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
| env: | ||
| JAVA_17_PATH: ${{ steps.setup-java-17.outputs.path }} | ||
| run: | | ||
| echo "JAVA_HOME=$JAVA_HOME" | ||
| echo "Java 17 path=${{ steps.setup-java-17.outputs.path }}" | ||
| if [ "$JAVA_HOME" != "${{ steps.setup-java-17.outputs.path }}" ]; then | ||
| echo "Java 17 path=$JAVA_17_PATH" | ||
| if [ "$JAVA_HOME" != "$JAVA_17_PATH" ]; then |
| Back | FazBrowse Home | New Git URL |
Description:
Resolves a zizmor/template-injection code scanning alert where ${{ steps.setup-java-17.outputs.path }} was interpolated directly into a run shell block, allowing the step output to expand into attacker-controllable code.
Fix moves the expression into a step-level env variable and references it as a plain shell variable:
Related issue:
Code scanning alert #118
Check list: