Skip to content

[BUG] Nested composite steps disabled by a literal caller input are still analyzed (false ISSUE-307 on golang/govulncheck-action with repo-checkout: false) #591

Closed

Description

@thomasboni

Describe the bug

A composite action step that is disabled by a literal caller input is still analyzed, so its findings are reported although the step never runs.

Example: golang/govulncheck-action only checks out the repository when repo-checkout is not 'false':

# golang/govulncheck-action@032d45514ae346b1db93c04b0c90b841c370344f, action.yml:46-47
- if: inputs.repo-checkout != 'false'
  uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

A workflow that passes repo-checkout: false still gets ISSUE-307 (checkout persists credentials) for that nested checkout.

To Reproduce

plumber analyze github.com/wilfriedroset/a10r

Result on 0.7.18 with the built-in default configuration: one finding, ISSUE-307 (LOW) on job govulncheck of .github/workflows/govulncheck.yml, "defined in golang/govulncheck-action@032d455..., action.yml line 47". The workflow calls the action with repo-checkout: false, and its own checkout already sets persist-credentials: false. Score 98/100, gate blocked, for a step that does not execute.

Expected behavior

When a nested step's if: depends only on inputs.<name> compared with string literals, resolve it with the caller's literal with: value (or the input's declared default) and skip the step when it evaluates to false. Conditions that reference runtime contexts (github.*, env.*, steps.*, ...) keep being inlined as today.

Relevant versions and configuration files

  • OS: Linux
  • Plumber version: 0.7.18
  • .plumber.yaml: none (built-in default)
  • GitHub provider, remote analysis

Additional context

Expected scope: ISSUE-307 is the visible case here, but any control reading nested steps (pinning, unverified scripts, template injection, ...) reports the same way on an input-disabled step.

Activity

  1. added theissue type on Nov 4, 2026
  2. Exypte commented on Nov 4, 2026

    @Exypte
    Contributor

    I'm working on this one, a fix is on the way.

  3. added 2 commits that reference this issue on Nov 5, 2026
    adaa929
    c61883c
  4. added a commit that references this issue on Nov 9, 2026
    eab2f54
  5. added 2 commits that reference this issue on Nov 20, 2026
    262dbd1
    ad38434
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions