Skip to content

HIVE-29553: Pin third-party GitHub Actions#6417

Open
okumin wants to merge 5 commits intoapache:masterfrom
okumin:HIVE-29553-pin-versions
Open

HIVE-29553: Pin third-party GitHub Actions#6417
okumin wants to merge 5 commits intoapache:masterfrom
okumin:HIVE-29553-pin-versions

Conversation

@okumin
Copy link
Copy Markdown
Contributor

@okumin okumin commented Apr 8, 2026

What changes were proposed in this pull request?

We would specify the versions of the external GitHub Actions, following ASF's policy.

https://issues.apache.org/jira/browse/HIVE-29553

This PR would also add two additional security workflows.

As CodeQL reported permission issues, I addressed them in this PR.

This PR does not pin apache/*, github/*, and actions/* because they are allowed.

Why are the changes needed?

Because of the policy, docker-image.yml is not currently working. Also, we should be aware of recent increase of supply-chain attacks.

Does this PR introduce any user-facing change?

No

How was this patch tested?

I ran new actions + docker-images.yml.

- 'master'

permissions:
contents: read
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

CodeQL reported this issue on my forked repo.
Image

default: '0.10.2'

permissions:
contents: read
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Image

permissions:
contents: read
issues: write
pull-requests: write
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Image

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.

what is this stale.yml?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think it is this guy.
image


- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

@deniskuzZ deniskuzZ Apr 8, 2026

Choose a reason for hiding this comment

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

can't we use tag v4.0.0 ?

 uses: docker/login-action@v4

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, we can't. ASF prohibits the use of mutable tags for non-official actions: https://infra.apache.org/github-actions-policy.html

You MUST pin all external actions to the specific git hash (SHA1) of the action that has been reviewed for use by the project. For instance, you MUST pin foobar/baz-action@8843d7f92416211de9ebb963ff4ce28125932878.

Related PRs.


- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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


- name: Build Hive Image locally
uses: docker/build-push-action@v4
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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


- name: Create k8s cluster
uses: helm/kind-action@v1
uses: helm/kind-action@ef37e7f390d99f746eb8b610417061a60e82a6cc
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

v1.14.0 ?


- name: Set up Helm
uses: azure/setup-helm@v4
uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

v5

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 8, 2026

@okumin okumin marked this pull request as ready for review April 8, 2026 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants