Example:
run: |
if git diff --quiet; then
echo "uncommitted_changes=false" >> "$GITHUB_OUTPUT"
else
echo "uncommitted_changes=true" >> "$GITHUB_OUTPUT"
fi
Octoscan incorrectly flags the lines that write to $GITHUB_OUTPUT as having a dangerous write, but they don't because they are not writing a variable, they are writing a string literal.
Example:
Octoscan incorrectly flags the lines that write to
$GITHUB_OUTPUTas having a dangerous write, but they don't because they are not writing a variable, they are writing a string literal.