[GH-ISSUE #506] Unable to resolve commit hash in uses #346

Closed
opened 2026-03-01 21:42:34 +03:00 by kerem · 0 comments
Owner

Originally created by @ksclarke on GitHub (Jan 27, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/506

Like the issue (#234) that requests that act support using a branch instead of a tag, it would also be good to support using a commit hash; for instance:

steps:
  - name: Install JDK 11
    uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1
    with:
      java-version: 11

Right now this also returns the "reference not found" error. Currently, using the long form of the hash works on GitHub Actions but not when the actions are run with act.

Using the hash is a best practice for third-party actions: https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions

Originally created by @ksclarke on GitHub (Jan 27, 2021). Original GitHub issue: https://github.com/nektos/act/issues/506 Like the issue (#234) that requests that `act` support using a branch instead of a tag, it would also be good to support using a commit hash; for instance: steps: - name: Install JDK 11 uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1 with: java-version: 11 Right now this also returns the "reference not found" error. Currently, using the long form of the hash works on GitHub Actions but not when the actions are run with `act`. Using the hash is a best practice for third-party actions: https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
kerem closed this issue 2026-03-01 21:42:34 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#346
No description provided.