Skip to content

Update trivy actions to v0.3.1 (main)#219

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/main-trivy-actions
Open

Update trivy actions to v0.3.1 (main)#219
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/main-trivy-actions

Conversation

@renovate
Copy link
Copy Markdown

@renovate renovate Bot commented Jun 3, 2026

This PR contains the following updates:

Package Type Update Change
aquasecurity/setup-trivy action minor v0.2.6v0.3.1

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

aquasecurity/setup-trivy (aquasecurity/setup-trivy)

v0.3.1

Compare Source

v0.3.1
🐛 Bug fix

Fixes a regression in v0.3.0 that made the action fail to load in every
workflow
, even when path was not set:

Unrecognized named-value: 'runner'. Located at position 1 within expression: runner.temp

A literal ${{ runner.temp }} had been left in an input description inside
action.yaml. GitHub evaluates every ${{ }} expression in the file —
including input descriptions, where the runner context is unavailable — so the
action could not be loaded at all. The expression has been removed from the
description and from the validation error message. See #​37 (#​38).

If you are on v0.3.0, upgrade to v0.3.1.

✅ Tests

Added a CI workflow that runs the action on ubuntu / windows / macOS (default,
cached, and custom-path installs) and verifies that an invalid path is
rejected. Because it exercises the action via uses: ./, it catches
action-loading failures like #​37 that static linters miss.

ℹ️ Note

The v0.3.0 security hardening and the path breaking change still apply:
path must be a literal path; shell variables ($HOME, $RUNNER_TEMP) and
~ are not expanded. Use a GitHub expression or a relative path:

path: ${{ runner.temp }}/trivy
path: ./bins

Full Changelog: aquasecurity/setup-trivy@v0.3.0...v0.3.1

v0.3.0

Compare Source

v0.3.0

[!CAUTION]
This release is broken — do not use it. Upgrade to v0.3.1.

v0.3.0 fails to load in every workflow, even when path is not set, with:

Unrecognized named-value: 'runner'. Located at position 1 within expression: runner.temp

The cause is a literal ${{ runner.temp }} left in an input description inside
action.yaml. GitHub evaluates every ${{ }} in the file, including in input
descriptions where the runner context is unavailable, so the action cannot be
loaded at all. Fixed in #​38 (released as v0.3.1); see #​37.

🔒 Security

Hardened the action against shell script injection: ${{ }} values are now passed via env: instead of being inlined into run: blocks, and all shell variables are quoted.

⚠️ Breaking change

The path input must now be a literal path. Shell variables ($HOME, $RUNNER_TEMP) and ~ are no longer expanded and will fail the action.

Only affects you if you explicitly set path with a $ or ~. Default usage is unchanged (Trivy installs to $HOME/.local/bin/trivy-bin), and aquasecurity/trivy-action is not affected.

# ❌ now rejected
path: $RUNNER_TEMP/trivy

# ✅ use a GitHub expression or a literal path
path: ${{ runner.temp }}/trivy
path: ./bins

Full Changelog: aquasecurity/setup-trivy@v0.2.6...v0.3.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update Github_actions code labels Jun 3, 2026
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate renovate Bot force-pushed the renovate/main-trivy-actions branch from 64cc9ce to aed4508 Compare June 4, 2026 07:48
@renovate renovate Bot changed the title Update trivy actions to v0.3.0 (main) Update trivy actions to v0.3.1 (main) Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file github_actions Pull requests that update Github_actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants