Skip to content

Releases

v0.4.4

Choose a tag to compare

@github-actions github-actions released this 01 Dec 15:22
f50006b

Notes

  • untrusted-checkout reports more run steps that bring the pull request's code into the workspace: gh pr checkout with a literal number or with a ${{ }} number (#941, #945), git fetch <remote> pull/<n>/head followed by git checkout (#951), and git fetch and git checkout of github.event.pull_request.head.sha or head.ref (#953). Code that a later command of the same script runs counts as executed (#945).
  • When untrusted-checkout cannot resolve the ref that a run step passes to git fetch or git checkout, it reports an inconclusive Finding instead of no Finding (#955).
  • secrets-inherit.local is inconclusive, not confirmed, when sisakulint has not read the local callee, as commit-sha already is for the same uses (#943).
  • Fixes of false positives for steps of actions/labeler: a step with if: failure() in a job where no step can fail (#934), and a command that runs as another user (#942).

Changelog

  • f50006b untrusted-checkout: run ステップの git fetch / git checkout の ref を解決できないとき Inconclusive を出す (#955)
  • ac94b91 untrusted-checkout: run ステップで攻撃者が選ぶ head 値 (head.sha / head.ref) を git fetch + git checkout する形を検出する (#953)
  • bc1c925 The comments of the true-negative example mutable-ref.app-commit.yml describe an environment approval that the facts of the example deny (#952)
  • f55339c untrusted-checkout: run ステップの git fetch <remote> pull/<n>/head + git checkout を検出する (#951)
  • b360bf4 LiteralValues で workflow_dispatch の choice 入力の options を読む (#787 の 3) (#947)
  • ee31567 A step that runs the attacker's code as another user is read as one the attacker cannot make fail, also when the step has timeout-minutes (since #942) (#946)
  • d90f7ba untrusted-checkout: gh pr checkout with a literal number, and code run later in the same script counts as executed (part 1b of #691) (#945)
  • 6793624 actions/labeler: 別 user で実行する command の errexit 位置を attackerMayFail で読み、false positive form labeler-other-user を外す (#844 の 2/2) (#942)
  • 7203572 secrets-inherit reports secrets-inherit.local as confirmed when it has not read the local callee, where commit-sha reports an inconclusive for the same uses (#943)
  • c3e4c33 untrusted-checkout: prcode の RunCheckoutSite を IR と rule に接続し、例と forms test を更新する (part 1a-2 of #691) (#941)
  • 2c04f61 actions/shell: errexit が効く位置かどうかの読み取りを追加する (#844 の 1/2) (#940)
  • 35d326f A step of actions/labeler with if: failure() in a job where no step can fail is read as a step that may run, so the rules report an inconclusive Finding (#934)

v0.4.3

Choose a tag to compare

@github-actions github-actions released this 30 Nov 14:47
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...
Read more

v0.4.2

Choose a tag to compare

@github-actions github-actions released this 29 Nov 13:12
3e8edc7

Notes

  • The JSON report has a new field call_paths in each finding and inconclusive finding, and the report schema (sisakulint/report/v0) lists the field as required (#853). A tool that validates the report with the schema of v0.4.1 rejects the report of v0.4.2. SARIF gives each call path as one codeFlows entry.
  • --read-all with file arguments also reports a Finding of a local composite action or reusable workflow when a named file is on one of its call paths (#856).
  • The anchor of a Finding now counts every reference in a sink (#785), so the fingerprint of some Findings can change once on the upgrade.
  • linux/arm builds again (#871).

Changelog

  • 3e8edc7 Merge pull request #871 from gh-intel/fix-arm32-build
  • 1d63293 Build for 32-bit linux/arm again, and check the 32-bit build in CI
  • a9e6636 known-vulnerable-actions and deprecated-node-runtime do not check the action that runs when a uses path leaves its repository with .. (#870)
  • 06df242 Merge pull request #785 from gh-intel/anchor-count-all
  • 1ab5a9a Merge remote-tracking branch 'origin/main' into anchor-count-all
  • 34649b6 CheckExamples: in the true positive retry, find the answers of the fact kinds that give the finding instead of flipping all of them (remove holdFlip) (#867)
  • aeb27da untrusted-checkout の undetected form artifact (other-rule) と artifact-poisoning の run-command (todo) の矛盾を解消する (#866)
  • dd49ac4 labeler: read a limit above math.MaxInt as math.MaxInt in nonNegative (CodeQL alerts #20 and #21) (#863)
  • 87ecd9d CheckExamples の other-rule 検査で、他ルールの Finding が宣言した form に関するものであることを要求する (#862)
  • 85f3084 [CodeQL] Weekly scan needs attention (#857)
  • 4803412 Merge pull request #856 from gh-intel/hikaevi/issues-832-141171162386
  • 2ba166e Merge pull request #853 from gh-intel/hikaevi/issues-831-141162262076
  • 3c6e436 Merge pull request #858 from gh-intel/hikaevi/issues-778-141186901112
  • d37235e self-hosted-runner: fix the five review points of #744 (a rule error with repeated matrix labels, README, --explain, the self-hosted label, certainty) https://github.com/gh-intel/hikaevi/actions/runs/46213234730
  • 902467c --read-all with file arguments: report a Finding of a local composite action or reusable workflow when a named file is on one of its call paths https://github.com/gh-intel/hikaevi/actions/runs/46207837402
  • db31e01 Finding of a local composite action or local reusable workflow: add a call path field and show it in the JSON, text and SARIF output https://github.com/gh-intel/hikaevi/actions/runs/46205613300
  • ac63960 Merge pull request #808 from gh-intel/hikaevi/issues-805-140260540935
  • 4b651ff secret-exfiltration: cover pull_request_review and pull_request_review_comment fork-only jobs with repo.fork-pr-secrets, and move the form fork-pull-request off todo https://github.com/HikaruEgashira/hikaevi/actions/runs/45925536879
  • 9d9315d Merge pull request #798 from gh-intel/hikaevi/issues-765-140172739339
  • 3421947 Merge the reachability answers (PlacedIf/NeedJobs, the skip table, job.AlwaysSkipped, StepIf) into one answer https://github.com/HikaruEgashira/hikaevi/actions/runs/45898227929
  • 07fc011 Evaluate job and step if as false when the event payload or the matrix can never make it true (#795)
  • 5ff9e1e CLAUDE.md: questions to ask of a diff before opening a pull request (#833)
  • 1de67c6 artifact-poisoning: read uploads of local reusable workflows, composite actions, and upload-artifact/merge, and read artifact patterns as minimatch does (#784)
  • 18a7de5 Clone the gh-intel Homebrew tap in the after_release job (#685)
  • 34e59e7 Merge branch 'agent-job-env' into anchor-count-all
  • a514368 Merge branch 'agent-job-env' into anchor-count-all
  • dfdb5c4 Test the count of a QuotedJSON reference and name what the counters count
  • fdad607 Count every reference of a sink before deciding the Finding of the anchor

v0.4.1

Choose a tag to compare

@github-actions github-actions released this 27 Nov 12:26
82a3566

sisakulint v0.4.1

日本語版はこのページの後半(「sisakulint v0.4.1(日本語)」)にあります。

v0.4.1 is the first update of the v1 linter after v0.4.0. It has 33 pull requests: 26 to the linter and its tests, and 7 Dependabot updates of the actions that the CI of this repository uses. The flags, the exit-code bits, and the names of the JSON schemas stay as in v0.4.0, with one exception: --no-assumptions and the configuration key no-assumptions are removed, because a run now treats every fact that no source answers as not known, as v0.4.0 did with --no-assumptions.

Important

On the same workflows, v0.4.1 can exit with a different code from v0.4.0. A Finding that v0.4.0 reported as confirmed because of an assumed fact is conditional in v0.4.1, and sets bit 2 instead of bit 1. A CI gate that checks only bit 1 (code & 1) passes such a Finding. Fail the gate on any of bits 1, 2, 8, and 16, or answer the facts (--online --repo "$GITHUB_REPOSITORY", --facts, --fact, or fact in --config).

Highlights

  • No assumed facts (#742). When no source (--fact, a file under --root, --facts, --online) answers a fact, a Finding that depends on the fact is conditional, and the Report names the fact. --no-assumptions is removed.
  • A new finding kind, credentials.configuration-variable (#749). A registry password read from a configuration variable (${{ vars.NAME }}) is reported (medium).
  • Trusted self-hosted runners (#744, #792). The new fact repo.runner-label-trusted declares a runner label that no pull request from a fork reaches, and self-hosted-runner does not report a job whose runs-on has the label. A runs-on that reads only matrix values is evaluated.
  • The AI agent rules read the env of the job and of the workflow (#780).
  • The Report says what a run did not read. The new field unread_uses (and not read lines in the text output) lists the reusable workflows and actions of other repositories that a run did not read (#811). The new inconclusive kind commit-sha.local-callee-unread reports a ./ callee that is not among the read files (#786).
  • Fewer missed findings and fewer false positives. The fixes are in the reading of scripts (bash -c '…', declare "$n=…", git -c, parameter expansions), in reachability (if: false steps, jobs that never run on the events of the workflow, the if of a caller job), in local composite actions and local reusable workflows, and in several rules. See "Detection fixes".

Before you upgrade (breaking changes)

A fact that no source answers is not known (#742)

v0.4.0 answered a fact that no source answered with an assumed value (the worst case, the x-assume of the fact kind), and gave a confirmed Finding. v0.4.1 does not assume a value: the fact is not known, and a Finding whose condition depends on the fact is conditional. A default run of v0.4.1 gives the same Findings as a run of v0.4.0 with --no-assumptions.

Measured on the all-rules example of v0.4.0 (actions/rules/testdata/all-rules, with its facts.json):

v0.4.0 v0.4.1 v0.4.0 with --no-assumptions
confirmed 130 90 90
conditional 0 46 46
inconclusive 23 23 23
Exit code 9 (bits 1 + 8) 11 (bits 1 + 2 + 8) 11

40 Findings changed from confirmed to conditional, and 6 Findings were added. The conditions of that run name the facts repo.public, repo.default-token-write, repo.wiki-open, repo.pull-request-target-allowed, repo.fork-pr-run-workflows, repo.allow-forking, checkout.executed, download.executed, repo.environment-protected, and request.destination-trusted.

What changes:

  • Exit code. A run that set bit 1 only because of an assumed fact sets bit 2 instead. A gate that fails on every non-zero exit code fails as before.
  • The Findings of both answers. Where the finding kind depends on the answer to a fact, the run reports the Finding of each answer, both conditional. With repo.public not known: self-hosted-runner.public and self-hosted-runner.private, and the .public and .private kinds of credentials, unmasked-secret-exposure, and secret-in-log. The 6 added Findings above are such *.private Findings. A consumer that does not read certainty sees more rows.
  • Text output. The line assumed: FACT = VALUE (--no-assumptions to drop) is gone. The conditional section lists each finding kind with the facts that are not known and their reason (why:). The reason names the sources that can answer a fact of the kind: offline: pass --facts or --online; offline: pass --facts or --fact, or --online with --repo for a fact of the repository; offline: pass --facts or --fact (--online answers no fact of the kind) for a kind such as checkout.executed; not in the file of facts when --facts was given.
  • SARIF. A conditional result keeps the level of its severity. properties.certainty is conditional, and the message ends with the condition, for example (conditional: the run does not know the answer to the fact repo.default-token-write, and the finding holds for some answers to the fact and not for others; --facts or --fact can give the answer). The fingerprints do not change: on the all-rules example, the 237 results of v0.4.0 have the same ruleId and partialFingerprints in v0.4.1, and the 6 *.private results are new.
  • Texts. --explain, the README, MIGRATION.md, the schemas, and the notes of the examples say that a Finding is conditional when no source answers the fact, instead of saying that the fact is assumed. For the fact kinds of a false positive form, --explain shows "answer that removes the finding" (the opposite of the x-assume value). The example catalog marks the facts of a flipped run "(flipped)".

What to do: answer the facts.

  • --online --repo "$GITHUB_REPOSITORY" (with GITHUB_TOKEN) asks the API for the facts of the repository (repo-setting). repo.default-token-write needs a token that can read the Actions settings of the repository; the GITHUB_TOKEN of a run cannot. repo.pull-request-target-allowed is never asked of the API.
  • Only a user answers checkout.executed, download.executed, request.destination-trusted, repo.action-list, and repo.runner-label-trusted. Write them in a facts file, with --fact, or in fact of --config.

--no-assumptions and the configuration key no-assumptions are removed (#742)

Input v0.4.1
--no-assumptions flag provided but not defined: -no-assumptions, exit code 64
no-assumptions: in the file of --config no-assumptions: not a key (the keys are exclude, fail-on, rule, skip-rule, accept, facts, repo, fact and add-attacker), exit code 66

Remove the flag and the key. The default run behaves as --no-assumptions did. no-assumptions was the only boolean key of the configuration file, so the boolean form of a key is removed too.

Schemas (the names stay v0)

The names of the schemas do not change, but their content does. As the notes of v0.4.0 said, the JSON schemas are not promised to stay compatible in the 0.x releases.

  • sisakulint/facts/v0
    • The value assumption of source is removed. A facts file never had that source (v0.4.0 refused such a file with exit code 66, and v0.4.1 does too), so a facts file that v0.4.0 wrote with --write-facts is read by v0.4.1 as before. An entry of facts with source: assumption in a Report of v0.4.0 does not validate against the schema of v0.4.1.
    • x-assume stays, with a new meaning: the answer under which the findings of the false positive forms that name the kind hold. The opposite answer removes those findings. A run never answers a fact with x-assume.
    • A new fact kind, repo.runner-label-trusted (arguments repo and runner_label), and the new definition runner-label. The schema has 30 fact kinds (29 in v0.4.0).
  • sisakulint/report/v0: a new required field, unread_uses (see below). The Report object has additionalProperties: false, so a Report of v0.4.1 does not validate against the report schema of v0.4.0. The description of certainty: confirmed no longer mentions assumed values.
  • The arguments of the finding kinds (findings-v0.json): the new credentials.configuration-variable (container, password). The description of ai-action-prompt-injection.env now includes the env of the job and of the workflow.
  • sisakulint/registry/v0: descriptions only.

Other changes that can change the exit code

  • credentials (#749). A password that reads vars, and no context other than vars and secrets, was credentials.password-expr: inconclusive, bit 8, counted at the worst severity of the rule (critical). It is now credentials.configuration-variable: confirmed, medium, bit 1. With --fail-on high or --fail-on critical, the place no longer sets a bit.
  • commit-sha (#786). A run that reads a caller but not its ./ callee gives commit-sha.local-callee-unread (inconclusive, bit 8). For example, when caller.yml has uses: ./.github/workflows/callee.yml, sisakulint --root . .github/workflows/caller.yml exited with 0 in v0.4.0, and exits with 8 in v0.4.1. Pass the callee too (… caller.yml callee.yml), use --read-all caller.yml, or accept the place with --accept.
  • Detection fixes. The fixes in "Detection fixes" add Findings that v0.4.0 missed, and remove Findings that were false positives.

What's new

credentials.configuration-variable (#749)

credentials reports a registry password of a container or of services that reads a configuration variable, such as ${{ vars.REGISTRY_PASSWORD }}, as the new finding kind credentials.configuration-variable (medium, confirmed, whatever repo.public is). GitHub keeps the value of a configuration variable as plain text: the runner does not mask the value in the log...

Read more

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 15:17
9e8ceee

sisakulint v0.4.0

日本語版はこのページの後半(「sisakulint v0.4.0(日本語)」)にあります。

v0.4.0 is the first release of the v1 linter, a rewrite of sisakulint. ("v1" is the name of the implementation, not a version number.) The flags, the exit codes, the output, the rule IDs, and the configuration file are not compatible with v0.3.8 and earlier, and no compatibility wrapper exists. Some flags keep their 0.x name but have a different meaning, so a CI script in which only the flag names are copied still runs, but gives different results.

Important

Read MIGRATION.md before you upgrade a CI script, a Homebrew installation, or gh-intel/sisakulint-action. The sections below summarize it.

Highlights

  • A new analysis engine with no third-party Go modules. The v1 linter reads YAML with its own lossless YAML 1.2.2 syntax tree, reads ${{ }} expressions with an expression parser, and reads run scripts with a bash and sh parser. go.mod has no require line, and the binary links only the Go standard library.
  • 35 security rules and 13 quality rules. Each security rule declares its threat: the attackers, the events, what the attackers gain, the preconditions (with citations of GitHub documentation and observations), and reported incidents. --explain prints the declaration.
  • Severity from CVSS v4.0. Each of the 78 finding kinds has a CVSS v4.0 vector, with a reason for each metric. The severity of a finding kind is derived from the vector by a fixed table of impact and likelihood.
  • Three certainties. A Finding is confirmed, conditional (it depends on a fact that has no answer), or inconclusive (the rule could not decide the place). Each certainty sets its own bit of the exit code.
  • Offline by default, facts on request. A run uses no network unless --online is given. Facts about the repository and about other repositories (whether the repository is public, the commit of a tag, the advisories of an action, and so on) come from --online, a facts file, or --fact. With --online, the rules also read composite actions (to depth 4) and reusable workflows (to depth 3) of other repositories.
  • A gate for pull requests. --remote OWNER/REPO --pull-request N --pull-request-head SHA reads the head of a pull request through the GitHub API without a clone, and reports only the inputs that the pull request changed.
  • Fixes with stated side effects. 14 fix kinds in 12 rules. --fix applies the 2 safe kinds, --fix=review applies all kinds, and --dry-run writes a diff for git apply.
  • An HTML report view. --html FILE and --serve draw the path of the evidence of each Finding. --examples --serve serves a catalog of the examples of every rule.
  • SARIF for code scanning, with one SARIF rule for each finding kind, levels from the severity, and fingerprints that do not depend on line numbers.

Before you upgrade (breaking changes)

Installation and module path

The organization sisaku-security was renamed to gh-intel, and the module path changed.

0.x (v0.3.8 and earlier) v0.4.0 and later
Module path github.com/sisaku-security/sisakulint github.com/gh-intel/sisakulint
go install go install github.com/sisaku-security/sisakulint/cmd/sisakulint@v0.3.8 go install github.com/gh-intel/sisakulint/cmd/sisakulint@v0.4.0
  • go install github.com/gh-intel/sisakulint/cmd/sisakulint@v0.3.8 fails, because the 0.x versions declare the 0.x module path. To keep 0.x, use the 0.x path.
  • To build from source, Go 1.26.11 is required.
  • The command name, the command package (cmd/sisakulint), and the SARIF tool name (sisakulint) are the same as in 0.x.
  • Homebrew: the tap distributes v0.4.0 and later, so brew upgrade replaces 0.x with the v1 linter. Rewrite your scripts before the upgrade.
  • gh-intel/sisakulint-action: do not set the input version to 0.4.0 or later with the current action. The action at 604b94b installs 0.3.0 by default, and always passes -fix "$SISAKULINT_AUTOFIX" and -format '{{sarif .}}'. With the v1 linter, these flags stop the run with exit code 64 or 66. The gate of the action also infers a severity from the end of the ruleId (-critical, and so on) and from words in the message, and the v1 linter writes neither. On the SARIF of the all-rules example, 233 of 237 results became low, so the default fail-on: high passes most results silently. Use v0.4.0 with the action only after a version of the action passes the flags of the v1 linter and reads its severity.

Exit codes

0.x returned 0 (no finding), 1 (findings), 2 (flag error), or 3 (fatal error). When the v1 linter has written the Report and has done everything that was requested, it returns the sum of these bits:

Bit Set when
1 A confirmed Finding at or above --fail-on exists
2 A conditional Finding at or above --fail-on exists, or no input remains after the excluded inputs are removed
4 An internal error occurred
8 An inconclusive Finding of a rule at or above --fail-on exists, and --accept does not accept it
16 An input, or an input that an input calls (uses: ./x), cannot be read or is invalid

Any other result is exactly one of these codes. With 64, 66, and 75, nothing is written to stdout.

Code Meaning
64 Usage error (2 in 0.x)
66 An input, a facts file, an acceptance file, or a configuration file cannot be read or is invalid, or the repository, commit, or pull request of --remote cannot be read
70 Not all fixes can be written
74 An output file (Report, SARIF, facts) cannot be written
75 The head of the pull request is not the value of --pull-request-head

What to check in a CI gate:

  • A gate that fails on every non-zero exit code works without change. It fails in more runs than with 0.x, because of bits 2 and 8.
  • Exit codes 2 and 3 no longer mean a flag error or a fatal error. They mean bit 2, and bits 1 and 2.
  • A script that checks only code & 1 passes silently on a conditional Finding. If you map the exit code to 0 or 1, return 1 when any of bits 1, 2, 8, and 16 is set. Do not map bit 4, 64, 66, 70, 74, or 75 to 0.
  • --fail-on SEVERITY (info, low, medium, high, critical) is the lowest severity that sets bits 1, 2, and 8.
  • Findings of quality rules set no bit.

Flags that keep a 0.x name but have a different meaning

0.x Behavior in v0.4.0 Use instead
-fix on, -fix off, -fix dry-run --fix takes no separate value. on is read as a PATH that does not exist, and the run stops with exit code 66 (-fix=on gives 64) --fix (safe fixes), --fix=review (all fixes), --fix --dry-run (a diff on stdout). For off, pass no --fix
-verbose The same as --detail full. No progress log is written Read inputs[] and errors[] of the Report (--format json)
-init Writes a template to stdout and creates no file --init > FILE
-remote QUERY Reads only one repository. A search query (org:…) gives exit code 64 No replacement

Removed flags

A removed flag prints flag provided but not defined: -NAME and the usage to stderr, and the run stops with exit code 64.

0.x v0.4.0
-ignore REGEX --skip-rule ID[,ID…]. An exact rule ID, not a regular expression. The skipped rule does not run (0.x ran the rule and discarded its findings)
-enable-rule NAME --rule ID[,ID…] runs only the named rules. To add one rule to the default rules, list every ID
-format TEMPLATE --format text|line|json|sarif. Apply jq to the JSON Report instead of a Go template
-config-file FILE --config FILE
-github-token TOKEN The environment variable GITHUB_TOKEN only
-pr N --remote OWNER/REPO --pull-request N
-expected-head-sha SHA --pull-request-head SHA (exit code 75 instead of 3)
-remote-checkout-dir DIR --write-snapshot DIR
-remote-target PATH A positional PATH
-r, -D --online reads the reusable workflows and actions of other repositories
-stdin-filename, -generate-action-list, -boilerplate, -debug, -l, -p None

Inputs

  • The v1 linter does not search the ancestor directories for the repository root. The root is --root (default .). A run in a subdirectory of the repository finds no input and sets bit 2.
  • Only the .yml and .yaml files directly under .github/workflows are workflows. GitHub does not run a file in a lower directory as a workflow. Every action.yml of the repository (or action.yaml when no action.yml exists) is also an input.
  • A PATH argument reads only that file. To read the whole repository and report only the places related to PATH, use --read-all PATH….

Configuration file

  • The v1 linter does not look for .github/sisakulint.yaml. It reads a configuration file only when --config FILE is given. When you lint the repository of another person with --root, a file in that repository must not remove rules.

  • The keys are exclude, fail-on, rule, skip-rule, accept, facts, repo, fact, add-attacker, and no-assumptions. Each key works in the same way as the flag of the same name.

  • To migrate a 0.x file, run this at the repository root, read the output, and commit it:

    sisakulint --init --legacy-configuration .github/sisakulint.yaml --root . > .github/sisakulint-config.yaml

    action-list becomes the fact repo.action-list, and config-variables becomes repo.configuration-variables. secret-exfiltration.allowed-hosts and the workflow directive # sisakulint:secret-exfiltration.allowed-hosts: … become request.destination-trusted, one entry for each pair of a secret and a destination that a current workflow sends the secret to. 0.x allowed a destination...

Read more

v0.3.8

Choose a tag to compare

@github-actions github-actions released this 12 Oct 14:19
9f674f0

v0.3.8 is a maintenance release that rebuilds sisakulint with Go 1.26.9 to pick up fixes for Go standard-library vulnerabilities. There are no changes to sisakulint's rules or command-line options.

Security

Release binaries are now built with Go 1.26.9 (previously 1.25.13). This picks up fixes for nine Go standard-library vulnerabilities published on 2026-10-08 in net/http, net/textproto, mime/multipart, and crypto/tls, which govulncheck flagged in sisakulint: GO-2026-6603, GO-2026-6605, GO-2026-6607, GO-2026-6608, GO-2026-6610, GO-2026-6611, GO-2026-6612, GO-2026-6613, and GO-2026-6617. Go 1.25 is no longer supported and did not receive these fixes, so this release moves to the Go 1.26 line. #660

Go requirement for go install

Installing with go install now requires Go 1.26.9 or newer. With the default GOTOOLCHAIN=auto, the go command downloads the required toolchain automatically; if you set GOTOOLCHAIN=local, upgrade Go first. Homebrew and the prebuilt release binaries are not affected. #660

Dependencies

  • mvdan.cc/sh/v3 3.13.1 → 3.14.1, the shell parser used to analyze run: scripts. #643
  • golang.org/x/oauth2 0.36.0 → 0.37.0. #641
  • golang.org/x/sync 0.22.0 → 0.23.0. #640, #661
  • golang.org/x/sys 0.47.0 → 0.48.0. #642

Maintenance

  • Corrected the contributor guide to describe the checks CI runs: gofmt, race-enabled tests, and govulncheck. Thanks to @sushant-me for their first contribution! #655

Upgrade

brew upgrade sisakulint

# Or install directly with Go (requires Go 1.26.9 or newer):
go install github.com/sisaku-security/sisakulint/cmd/sisakulint@v0.3.8

Full changelog: v0.3.7...v0.3.8

v0.3.7

Choose a tag to compare

@github-actions github-actions released this 31 Aug 14:52
17c2d82

v0.3.7 fixes configuration bootstrap and improves GitHub Actions security analysis around artifact extraction and the Node.js 20 runtime transition.

Configuration bootstrap

sisakulint -init now creates .github/sisakulint.yaml, the configuration file sisakulint actually loads. The generated YAML is valid and round-trips successfully, and its action-list now starts empty so initialization does not unexpectedly enable allowlist findings. #578

Artifact-poisoning detection

  • artifact-poisoning-critical now reports a literal $RUNNER_TEMP download path correctly. Values in an action with: input are not shell-expanded, so this form extracts inside the workspace rather than to the runner temporary directory.
  • Equivalent ${{ runner.temp }} expressions—regardless of whitespace or letter case—and leading whitespace are recognized consistently, avoiding false positives for safe temporary-directory paths. #581

Deprecated Node.js runtime detection

The offline fallback for deprecated-node-runtime now covers actions/dependency-review-action: v4 is detected as using Node.js 20 and can be upgraded automatically to v5 (Node.js 24) when action metadata cannot be resolved. #635

CLI and maintenance

  • Corrected -ignore help text to state that it matches rule names. #636
  • Updated the Go toolchain to 1.25.13 to include standard-library vulnerability fixes. #590

Upgrade

brew upgrade sisakulint

# Or install directly with Go:
go install github.com/sisaku-security/sisakulint/cmd/sisakulint@v0.3.7

Full changelog: v0.3.6...v0.3.7

v0.3.6

Choose a tag to compare

@github-actions github-actions released this 02 Aug 12:04
dea1408

v0.3.6 introduces full-repository, immutable pull-request scans for service and CI integrations, together with two important false-positive fixes.

New: immutable pull-request scans

sisakulint can now scan the exact head of a pull request without requiring callers to clone the repository themselves:

sisakulint -remote owner/repo -pr 123
sisakulint -remote https://github.com/owner/repo/pull/123

For webhook-driven services, -expected-head-sha pins the scan to the revision that triggered the job. sisakulint captures and revalidates both sides of the PR, downloads the repository archive at the immutable head SHA, and analyzes the complete repository so project-wide rules, lockfiles, local actions, and reusable workflows remain available as context.

Only workflows changed by the PR are reported. Use repeatable -remote-target flags to narrow that report/fix scope further. -fix dry-run can preview fixes; applying -fix on requires a new -remote-checkout-dir, and sisakulint never writes directly to GitHub.

Snapshot acquisition fails closed with HTTPS-only redirects, credential stripping across archive redirects, PR file and page limits, revision revalidation, and strict archive traversal, link, duplicate-path, entry-count, compressed-size, extracted-size, and per-file checks. Private repositories can use token flags/environment variables, gh auth, or Git credentials. Remote scans currently support GitHub.com only. #567

False-positive fixes

  • Fixed artifact-poisoning-critical for same-run artifact fan-in. A workflow without a privileged trigger is no longer flagged merely because it downloads an artifact to a workspace-relative path. Explicit cross-run downloads and privileged-trigger paths remain covered. #553
  • Fixed impostor-commit for valid SHA pins on older action major versions. The independent tag-ancestry comparison window now covers 30 tags instead of 10, preventing newer major releases from pushing a valid older ancestor outside the verification window. #569

Security and reliability

  • Hardened GitHub Actions workflows with narrower token permissions, immutable action pins, disabled persisted checkout credentials and build caches where appropriate, consistent CodeQL action versions, and bounded job timeouts. #558
  • Strengthened CI with race-enabled tests, reachable-vulnerability checks, parser fuzz coverage, and a security policy. The project now targets Go 1.25.12, and releases pin GoReleaser v2.15.3. #558
  • Added bounded GitHub API requests and PR file pagination, explicit compressed-archive limit errors, and regression coverage for credential-host and archive-redirect boundaries. #567

Maintenance

  • Updated grouped CodeQL action dependencies and OpenSSF Scorecard to v2.4.4. #559, #563, #564
  • Removed the unused Dockerfile and its stale maintenance references. Supported distribution remains Homebrew, release binaries, go install, and the sisakulint GitHub Action. #558

Upgrade

brew upgrade sisakulint

# Or install directly with Go:
go install github.com/sisaku-security/sisakulint/cmd/sisakulint@v0.3.6

Full changelog: v0.3.5...v0.3.6

v0.3.5

Choose a tag to compare

@github-actions github-actions released this 13 Jul 17:11

Highlights

  • Fixed secret-in-log false positives for secrets piped into file-redirected sinks, such as echo "$SECRET" | base64 --decode > file. This preserves real log-leak findings while avoiding noisy reports for common certificate/key import patterns. #536
  • Fixed output-clobbering detection for inline $GITHUB_OUTPUT writes even when the same untrusted expression is also defined in step env:. Env indirection alone does not prevent newline injection into $GITHUB_OUTPUT. #549
  • Made the output-clobbering auto-fix order-independent when code-injection has already moved an untrusted expression into env:. The fix now still wraps the output write in heredoc syntax. #548
  • Fixed dangerous-triggers so permissions: {} is recognized as an explicit restriction. This removes a false positive and makes the rule's auto-fix converge on re-lint. #547
  • Fixed artipacked checkout-version parsing for commit SHA pins. SHAs beginning with decimal hex characters are no longer misread as checkout major versions, avoiding unintended severity downgrades. #546
  • Fixed release build metadata so sisakulint -version no longer includes a stray trailing quote in the tool version.

Maintenance

  • Bumped Go dependencies: golang.org/x/sys to v0.47.0 and golang.org/x/sync to v0.22.0. #540, #541
  • Bumped GitHub Actions dependencies, including CodeQL action components to v4.37.0 and goreleaser/goreleaser-action to v7.2.3. #542, #543, #544, #545

Full changelog: v0.3.4...v0.3.5

v0.3.4

Choose a tag to compare

@github-actions github-actions released this 10 Jul 14:18
5db9fc8

Changelog

  • 5db9fc8 Merge pull request #538 from sisaku-security/fix/secret-exfiltration-google-apis
  • d76f7f1 fix(secret-exfiltration): scope Google OAuth allowlist
  • 26ce26d Merge pull request #525 from sisaku-security/fix/artifact-poisoning-trigger-map
  • e03ebab Merge pull request #527 from sisaku-security/feat/deprecated-node-runtime-rule
  • c827990 fix(secret-exfiltration): allowlist googleapis.com for curl
  • dfeb590 Merge pull request #514 from sisaku-security/fix/envpath-cofire-realpath
  • 62b6d07 Fix envpath co-fire shadowed name wrap
  • bcf25fa docs: add language tag to report sample fence (MD040)
  • cc7901a docs: add website rule doc for deprecated-node-runtime
  • 2d0be8d docs: drop parentheticals that read fine without them
  • 19f9b19 docs: reduce comment reading load across the PR diff
  • b9fb7d2 fix: use firstNode24Major as the deprecation boundary
  • 9eef958 chore: remove leftover slop from review
  • b24472c feat: add deprecated-node-runtime rule for Node.js 20 EOL migration
  • f16e54e refactor: share RemoteActionsMetadataCache across all files of a lint run
  • 6286ffb fix: make RemoteActionsMetadataCache resilient to transient fetch failures
  • 869e58b Merge pull request #528 from sisaku-security/claude-md-split
  • cc0ef71 Merge pull request #524 from sisaku-security/fix/untrusted-checkout-head-label
  • c434c90 fix(untrusted-checkout): add snake_case head_label variant
  • ff50310 docs: correct claims flagged by fact-check QA
  • e42b4a0 docs: drop parentheticals that read fine without them
  • 0d6578c docs: write CLAUDE.md guidance in English
  • 91a6c38 docs: split CLAUDE.md into per-directory guidance files
  • b678dad Merge pull request #520 from sisaku-security/dependabot/github_actions/actions/setup-go-6.5.0
  • 4d7aec5 Merge pull request #521 from sisaku-security/dependabot/github_actions/github/codeql-action/upload-sarif-4.36.3
  • a886fbb Merge pull request #516 from sisaku-security/dependabot/go_modules/golang.org/x/sys-0.46.0
  • ddd7b2b Merge pull request #522 from sisaku-security/dependabot/github_actions/github/codeql-action/init-4.36.3
  • a07179a Merge pull request #523 from sisaku-security/dependabot/github_actions/github/codeql-action/analyze-4.36.3
  • 06a80be fix(artifact-poisoning-medium): widen untrusted trigger set to match canonical
  • a809432 fix(untrusted-checkout): detect head.label incl. in compound refs
  • 52e0f29 chore(deps): bump github/codeql-action/analyze from 4.36.2 to 4.36.3
  • 913cb00 chore(deps): bump github/codeql-action/init from 4.36.2 to 4.36.3
  • 71ba655 chore(deps): bump github/codeql-action/upload-sarif
  • deff105 chore(deps): bump actions/setup-go from 6.4.0 to 6.5.0
  • b4f0e3f chore(deps): bump golang.org/x/sys from 0.45.0 to 0.46.0
  • c02ca96 Merge pull request #517 from sisaku-security/dependabot/go_modules/golang.org/x/sync-0.21.0
  • 0766a1c Merge pull request #518 from sisaku-security/dependabot/github_actions/github/codeql-action-4.36.2
  • 694b08b Merge pull request #507 from sisaku-security/dependabot/github_actions/actions/checkout-6.0.3
  • 7e6f89a chore(deps): bump github/codeql-action from 4.36.1 to 4.36.2
  • cf8af50 chore(deps): bump golang.org/x/sync from 0.20.0 to 0.21.0
  • 14af18f Merge pull request #515 from sisaku-security/fix/metadata-debug-pointer-addresses
  • 0f7035c also fix local action metadata debug call
  • 5648a3c fix metadata debug log printing pointer addresses
  • 72bf999 chore(deps): bump actions/checkout from 6.0.2 to 6.0.3