Skip to content

action-allowlist-review: bump graalvm/setup-graalvm from 1.5.2 to 1.5.3 in /.github/actions/for-dependabot-triggered-reviews#817

Merged
potiuk merged 1 commit into
mainfrom
dependabot/github_actions/dot-github/actions/for-dependabot-triggered-reviews/graalvm/setup-graalvm-1.5.3
May 9, 2026
Merged

action-allowlist-review: bump graalvm/setup-graalvm from 1.5.2 to 1.5.3 in /.github/actions/for-dependabot-triggered-reviews#817
potiuk merged 1 commit into
mainfrom
dependabot/github_actions/dot-github/actions/for-dependabot-triggered-reviews/graalvm/setup-graalvm-1.5.3

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 7, 2026

Bumps graalvm/setup-graalvm from 1.5.2 to 1.5.3.

Release notes

Sourced from graalvm/setup-graalvm's releases.

v1.5.3

What's Changed

Full Changelog: graalvm/setup-graalvm@v1.5.2...v1.5.3

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [graalvm/setup-graalvm](https://github.com/graalvm/setup-graalvm) from 1.5.2 to 1.5.3.
- [Release notes](https://github.com/graalvm/setup-graalvm/releases)
- [Commits](graalvm/setup-graalvm@60c2672...bef4b0e)

---
updated-dependencies:
- dependency-name: graalvm/setup-graalvm
  dependency-version: 1.5.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels May 7, 2026
@dependabot dependabot Bot requested review from dfoulks1 and potiuk as code owners May 7, 2026 13:28
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels May 7, 2026
@potiuk
Copy link
Copy Markdown
Member

potiuk commented May 9, 2026

Reviewed all 7 "unverified download" findings — all 7 are false positives, surfacing three distinct gaps in our JS download / verification heuristic:

  • 2× JSON API calls flagged as binary downloads (lines 62, 97 in src/gds.ts): http.get(requestUrl, { accept: 'application/json' }) followed by JSON.parse(...) is a metadata call.
  • 1× function definition flagged as a call (line 153 in src/gds.ts): async function downloadTool(...) is the helper's declaration, not an invocation.
  • 4× verified downloads missed because verification is via bare createHash('sha256') (imported as import { createHash } from 'crypto') and a custom calculateSHA256 helper — our regex required crypto.createHash( (module-prefix form) and missed both shapes.

Fix in flight at #830 — three small heuristic tightenings. With it applied, the action passes (exit 0); the 6 remaining findings (1 function-def line dropped) are reported as "verification present in file" warnings instead of failures.

No upstream issue/PR needed — graalvm/setup-graalvm's verification chain is sound (downloads happen via helpers, then if (sha256 !== artifact.checksum) throw); our checker just needed to see it.

@potiuk
Copy link
Copy Markdown
Member

potiuk commented May 9, 2026

The #830 fix with verified download heuristics + manual review of the changes done -> looks good to merge.

@potiuk potiuk merged commit 85c97af into main May 9, 2026
9 of 10 checks passed
@potiuk potiuk deleted the dependabot/github_actions/dot-github/actions/for-dependabot-triggered-reviews/graalvm/setup-graalvm-1.5.3 branch May 9, 2026 14:11
potiuk added a commit that referenced this pull request May 11, 2026
…tives

graalvm/setup-graalvm v1.5.3 (PR #817) flagged 7 "unverified
downloads" all of which were false positives:

  * 2x http.get(url, { accept: 'application/json' }) followed by
    JSON.parse — JSON metadata calls, not binary downloads.
  * 1x async function downloadTool(...) — function definition
    that happens to start with the helper's name.
  * 4x downloads (across gds.ts/utils.ts) where verification IS
    in the same file via createHash('sha256') and a custom
    calculateSHA256 helper, but the regex required crypto.
    createHash (with module prefix) and missed the bare imported
    form + custom helper names.

Three fixes:

  1. Add ``accept: 'application/json'`` (single- or double-quoted)
     as a data-parse marker.  An HTTP call asking for JSON in its
     own request headers is data, not bytes.
  2. Skip lines that look like function definitions in the
     download-pattern scanner.  ``function name(``,
     ``async function name(``, ``export default async function
     name(`` and ``function* name(`` all match the new
     ``_JS_FUNCTION_DEFINITION_RE`` and are excluded.
  3. Recognize bare ``createHash('sha…')`` and the conventional
     ``calculateSHA[256|512|...]`` / ``calculateChecksum`` /
     ``verifyHash`` / ``computeChecksum`` helper names as
     verification.

12 new tests pin each fix.  Re-running verify-action-build against
graalvm/setup-graalvm@bef4b0e9 (the v1.5.3 SHA): exit 0; the 6
remaining findings are recognized as "verification present in
file" and reported as warnings rather than failures.
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.

1 participant