Skip to content

Update actions/checkout and actions/setup-java, apply SHA pinning#106

Merged
sormuras merged 1 commit into
oracle-actions:mainfrom
scordio:gh-105-update-and-pin
Sep 19, 2025
Merged

Update actions/checkout and actions/setup-java, apply SHA pinning#106
sormuras merged 1 commit into
oracle-actions:mainfrom
scordio:gh-105-update-and-pin

Conversation

@scordio

@scordio scordio commented Sep 14, 2025

Copy link
Copy Markdown
Contributor

Prior to this change, projects using oracle-actions/setup-java with SHA pinning, and having pinning enforced at the repository or organization level, would fail with the following error:

Error: The action actions/setup-java@v4 is not allowed in <project name> because all actions must be pinned to a full-length commit SHA.

See an example here.

This is because oracle-actions/setup-java uses actions/setup-java under the hood without pinning.

This change updates all used actions to the latest versions and also applies SHA pinning to them.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Sep 14, 2025
@scordio

scordio commented Sep 14, 2025

Copy link
Copy Markdown
Contributor Author

Have you considered enabling Dependabot to keep the actions updated? SHA pinning is also supported (example).

@sormuras sormuras left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes all look good - thanks for the PR!

@sormuras

Copy link
Copy Markdown
Member

Have you considered enabling Dependabot to keep the actions updated? SHA pinning is also supported (example).

Let me check this first.

@scordio

scordio commented Sep 19, 2025

Copy link
Copy Markdown
Contributor Author

Hi @sormuras, putting aside Dependabot, do you think these changes could be merged? I'd love to restore the restriction in our organization and see if other issues surface.

@sormuras sormuras merged commit f70040c into oracle-actions:main Sep 19, 2025
3 checks passed
@sormuras

Copy link
Copy Markdown
Member

Sure. I am also releasing v1.5.0 in a minute to reflect the changes for folks not using SHA-pinned actions.

@scordio

scordio commented Sep 19, 2025

Copy link
Copy Markdown
Contributor Author

Many thanks!

@scordio scordio deleted the gh-105-update-and-pin branch September 19, 2025 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Development

Successfully merging this pull request may close these issues.

Update actions

2 participants