CodeQL library for GitHub Actions
codeql/actions-all 0.4.27-dev (changelog, source)
Search

Predicate envToOutputStoreStep

Holds if a Run step declares an environment variable, uses it in its script and sets an output in its script. e.g.

  • name: Extract and Clean Initial URL id: extract-url env: BODY: ${{ github.event.comment.body }} run: | echo “::set-output name=foo::$BODY” echo “foo=$(echo $BODY)” >> $GITHUB_OUTPUT echo “foo=$(echo $BODY)” >> “$GITHUB_OUTPUT” echo “::set-output name=step-output::$BODY”

Import path

import codeql.actions.dataflow.FlowSteps
predicate envToOutputStoreStep(Node pred, Node succ, ContentSet c)