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

Skip to content

Conversation

@anweiss
Copy link
Owner

@anweiss anweiss commented Aug 19, 2025

Potential fix for https://github.com/anweiss/cddl/security/code-scanning/73

To fix the code injection risk, we should avoid using ${{ matrix.rust_toolchain }} directly in the shell command. Instead, set it as an environment variable in the step, and reference it using shell syntax ($RUST_TOOLCHAIN). This change should be applied to all steps where ${{ matrix.rust_toolchain }} is used in a shell command, specifically lines 21, 25, and 29. No additional imports or definitions are needed, as this is a YAML configuration change.


Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@anweiss anweiss marked this pull request as ready for review August 19, 2025 18:52
@anweiss anweiss merged commit 4be7047 into main Aug 20, 2025
3 checks passed
@anweiss anweiss deleted the alert-autofix-73 branch August 20, 2025 01:42
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