Skip to content

v0.4.3

Choose a tag to compare

@github-actions github-actions released this 30 Nov 14:47
· 20 commits to main since this release
e4d2a0c

Notes

  • New quality rule private-key-in-secrets, which runs only when named (--rule private-key-in-secrets). It reports a step that passes secrets.* as the private key of actions/create-github-app-token, as the ssh-key of actions/checkout, or as the ssh-private-key of webfactory/ssh-agent (#872, #874, #877).
  • New fact kind input.repository. --repo, the config key repo and --remote answer it, the report lists it in facts, and --write-facts writes it. A facts file that answers it applies its entries without repo to that repository (#906, #909, #911).
  • An absolute path argument under --root is now read as the path relative to --root. A path outside --root stops with exit code 64, and the message names --root (#919).
  • The text and line output show the disposition of an inconclusive finding: [inconclusive: todo] or [inconclusive: limitation] instead of [inconclusive] (#879). A tool that matches [inconclusive] in the line output needs to change. The JSON report does not change for this.
  • The report schema (sisakulint/report/v0) adds a condition leaf {"kind": "<fact kind>", "unasked": true} for a fact that no query can name. Such a finding is now conditional instead of confirmed (#886). A tool that validates the report with the schema of v0.4.2 rejects a report that holds this leaf. The registry schema adds removing_answer to the fact kinds of a false positive form (#887).
  • A Finding of an AI agent step that a workflow reaches through a local composite action is reported once, at the step of the composite action (#929).
  • A job with many checkout and upload-artifact pairs is linted much faster: 100 pairs took 35 s before and 1 s now (#880).
  • Fixes of false positives and misses in code-injection, envvar-injection, argument-injection, artifact-poisoning, artipacked, output-clobbering, dangerous-triggers, untrusted-checkout, cache-poisoning, unmasked-secret-exposure, credentials, self-hosted-runner, allowed-actions, ai-action-excessive-tools and ai-action-unsafe-sandbox. See the changelog.

Changelog

  • e4d2a0c A cancel step before a wait-all is ignored when the linter reads whether a background step that runs the pull request code fails the job (#936)
  • fa4bfe4 prcode: run step 内の gh pr checkout ${{ <PR 番号> }} を検出する RunCheckoutSite を追加する (part 1a-1 of #691) (#935)
  • 727d9f6 Examples of envvar-injection and envpath-injection do not show the form that the declaration names (env-whole, GITHUB_PATH lines, wiki wording) (#931)
  • 26580e3 code-injection と envvar-injection の matrix 参照を LiteralValues で判定する (#787 の 2) (#930)
  • c65b263 A step reached through a local composite action is reported at two places: at the caller step and at the step of the composite action (#929)
  • 2271184 ai-action-excessive-tools: Bash(find:*) の -fprint/-fprintf/-fls (ファイル書き込み) を Inconclusive として報告し、find の扱いを --explain に宣言する (#928)
  • 630e72d unmasked-secret-exposure: (cond && env).NAME は env のその名前の変数だけとして読む (false positive form env-property) (#927)
  • bb71674 self-hosted-runner と actions/ir の image/credentials を LiteralValues に置き換え、MatrixValues を削除する (#914 の 2) (#926)
  • 6abd0d3 unmasked-secret-exposure: read a property of (X || env) as a variable of the env (undetected form env-object-property) (#925)
  • 16526f6 actions/job に LiteralValues を追加する (#914 の 1) (#924)
  • 549659b ai-action-excessive-tools and ai-action-unsafe-sandbox give setting-expr for a grant whose only ${{ }} is github.event.issue.number (#923)
  • fc6577a literalScriptOutput は exec で別ファイルを実行する github-script の output を NotControlled と判定する (#920)
  • e304612 An absolute PATH under --root is refused with exit code 64, and the message does not name --root (#919)
  • 6d20ae2 step-output-remote-action is a critical Finding for an output that an inline actions/github-script script of the same file sets with core.setOutput of a literal (#917)
  • b715f7e credentials gives a critical password-expr for a container image with text around a ${{ }} (gcc:${{ matrix.compiler }}), which can never hold credentials (#912)
  • eb0670e allowed-actions: remove the false positive form owner-unknown and read the owner from input.repository (part 3 of #745) (#911)
  • 775aa61 Taint analysis: follow both values of an env key that a runner variable may replace when runs-on does not decide the OS (#910)
  • adcbc45 A facts file that answers input.repository applies its entries without repo to that repository (part 2 of #745) (#909)
  • 421e2d9 ai-action-excessive-tools gives no Finding for Bash(git log *), Bash(git diff *), Bash(git show *), which write .git/config with --output and then run its program (#908)
  • 3e44ba7 A Finding whose attacker reads the secrets of a job does not say that a secret is a private key that keeps working after the run (#907)
  • b821a70 Add the fact kind input.repository that --repo and the config key repo answer (part 1 of #745) (#906)
  • d41af81 dangerous-triggers gives no Finding for a workflow_run job whose if is github.actor == 'dependabot[bot]' (since #893) (#905)
  • 1115f66 output-clobbering gives no Finding when the script defines exit as a function or an alias before an anchored =~ guard (since #885) (#904)
  • e3d5eaf artipacked gives no Finding for an upload of the workspace's .git/config by a literal path on a self-hosted runner (since #884) (#903)
  • f3521cc artifact-poisoning misses a download that takes a pull request's artifact through an empty name, through artifact-ids, or through pattern on actions/download-artifact v1 to v3 (#901)
  • 0f94a67 ai-action-excessive-tools gives a critical unknown-command for a grant that it has classified (yarn, npx, gh) and for pwd, cd, mkdir (#892)
  • f734e8a artifact-poisoning: a download whose name or pattern is a ${{ }} gives a Finding, while a merge whose pattern is a ${{ }} gives an Inconclusive (#894)
  • adc089b dangerous-triggers.secrets and token-write say "an attacker triggers" on a job whose if lets in only OWNER, MEMBER and COLLABORATOR author_association (#893)
  • 2a3ccdd untrusted-checkout.executed names pull_request_target for a workflow_call file whose repository/ref take the head only when github.event_name == 'pull_request' (#891)
  • b3c19a4 argument-injection reports a ${{ }} in the middle of a quoted word after a literal prefix (printf 'ghcr.io/${{ env.X }}@sha256:%s') (#890)
  • 7128e6f code-injection gives a critical job-output for needs..outputs where an attacker-controlled value at the same place gives no Finding (#889)
  • 7f0a97d code-injection.controlled is a confirmed critical for github.event.merge_group.base_sha, a commit SHA; head_sha on the same line gives nothing (#888)
  • 1c11f2f --explain and the registry give one x-assume value per fact kind, but for three fact kinds the answer that removes a Finding differs by finding kind (#887)
  • fbc0181 A Finding is confirmed, not conditional, when sisakulint cannot ask a fact about a step of a remote called workflow or about an input whose path has a backslash (#886)
  • c429adf output-clobbering reports a value that the script has checked with an anchored [[ =~ ]] and exit 1 before the write (#885)
  • 3c656d9 artipacked gives critical upload-input-unknown for a literal path outside the workspace and RUNNER_TEMP (~/.cargo/bin/cross) (#884)
  • d6951a2 dangerous-triggers.token-write is confirmed on a workflow_run job whose if lets in only push, schedule and workflow_dispatch runs of the repository (#882)
  • 6844579 EventsOf and EventsOn differ only by a preposition, but one reads a called workflow as running on no event (#883)
  • 1372240 input-dispatch of untrusted-checkout and cache-poisoning reports an input that only workflow_call declares, when workflow_dispatch has no inputs (#881)
  • 38e6dd6 Run time grows faster than the square of the number of steps on a job of checkout and upload-artifact pairs: 36 s for 100 pairs, over 200 s for 200 pairs (#880)
  • 887d1cf An unknown value that decides the harm is assumed to be the worst case for a fact kind, but gives an inconclusive Finding for a step output, with a different exit-code bit (#879)
  • 5944b17 A fact query can hold an input_path with a backslash, which the facts schema rejects, and nothing stops a new call site from building one (#878)
  • 57f9d46 private-key-in-secrets: actions/checkout の ssh-key と webfactory/ssh-agent の ssh-private-key を検出に加え、#829 の release.yml を example にする (#829 の 2/2) (#877)
  • 6266294 No test checks that spellings of an expression with the same meaning give the same Findings (#876)
  • ce7b97c unmasked-secret-exposure: secrets.X || '' はどの実行でも secret 全体として読む (false positive form masked-alternative) (#875)
  • 8b9807d private-key-in-secrets の UndetectedForm 3 つを example 付きで宣言する: 鍵ファイルに書く run step、他の action の private key input、remote の callee (#864 の 2/2) (#874)
  • 271f09e quality rule private-key-in-secrets (DefaultRun named) の最小実装: actions/create-github-app-token の private-key に secrets.* を渡す step を報告する (#864 の 1/2) (#872)