You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2026/10/21 17:21:39 UTC
(spark-kubernetes-operator) branch main updated: [SPARK-60427] Update GitHub Actions to the latest approved versions and pin `setup-minikube` to a commit SHA
This is an automated email from the ASF dual-hosted git repository.
dongjoon-hyun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new b022d7cb [SPARK-60427] Update GitHub Actions to the latest approved versions and pin `setup-minikube` to a commit SHA
b022d7cb is described below
commit b022d7cbd014a9c1a4fe61e267bba10e20d2d441
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Wed Oct 21 10:21:33 2026 -0700
[SPARK-60427] Update GitHub Actions to the latest approved versions and pin `setup-minikube` to a commit SHA
### What changes were proposed in this pull request?
This PR aims to update the following GitHub Actions to their latest approved versions before the current SHAs expire, and to pin `medyagh/setup-minikube` to a commit SHA instead of a tag.
| Action | Before | After |
|---|---|---|
| `gradle/actions/setup-gradle` | v6.3.0 (`9c971963bec38e04b3d30dcc455b5382be2fdbfb`), expires on 2026-12-26 | [v6.4.0](https://github.com/gradle/actions/releases/tag/v6.4.0) (2026-09-28) (`3f5f9adaf7d9fecd50b5935e54106014257a94e6`) |
| `burnett01/rsync-deployments` | 9.0.1 (`155b6d6c1219ab2224c20c58d423a3f1b850395f`), expires on 2027-01-09 | [9.0.2](https://github.com/Burnett01/rsync-deployments/releases/tag/9.0.2) (2026-10-14) (`2cbb5ed94b73d111d07a40b071b1c7d3c0272435`) |
| `medyagh/setup-minikube` | `v0.0.21` (tag) | [v0.0.21](https://github.com/medyagh/setup-minikube/releases/tag/v0.0.21) (2025-12-14) (`e9e035a86bbc3caea26a450bd4dbf9d0c453682e`) |
All SHAs are checked against [actions.yml](https://github.com/apache/infrastructure-actions/blob/039fd349d6281381d4e7856b4e48fc4cf41c6be3/actions.yml) of `apache/infrastructure-actions` at `039fd34` (2026-10-21).
- [`gradle/actions/setup-gradle`](https://github.com/apache/infrastructure-actions/blob/039fd349d6281381d4e7856b4e48fc4cf41c6be3/actions.yml#L530-L543): The new SHA is the current approved version without `expires_at`. It is the commit of the annotated `v6.4.0` tag.
- [`burnett01/rsync-deployments`](https://github.com/apache/infrastructure-actions/blob/039fd349d6281381d4e7856b4e48fc4cf41c6be3/actions.yml#L159-L167): The new SHA is the current approved version without `expires_at`.
- [`medyagh/setup-minikube`](https://github.com/apache/infrastructure-actions/blob/039fd349d6281381d4e7856b4e48fc4cf41c6be3/actions.yml#L811-L813): It is approved with a wildcard (`'*'` with `keep: true`), so the tag reference is accepted. However, the [ASF GitHub Actions Policy](https://infra.apache.org/github-actions-policy.html) says "You MUST pin all external actions to the specific git hash (SHA1)". The new SHA is the commit of the `v0.0.21` tag, which is still the latest release [...]
- The `docker/*` actions are already pinned to the latest approved SHAs without `expires_at`. The `actions/*` and `apache/*` actions are not subject to the approved list and are already at their latest versions.
### Why are the changes needed?
The daily `remove_expired` job of `apache/infrastructure-actions` removes SHAs from the approved list once their `expires_at` dates pass. After that, the CI jobs using the old SHAs will fail because the actions are no longer allowed.
There is no breaking change for this repository.
- `setup-gradle` v6.4.0 only adds a new `external` option to `cache-provider` in `action.yml`, so `cache-provider: basic` still works. The new Gradle signing key in the release notes does not matter here because `gradle/verification-metadata.xml` does not verify signatures and the dependency graph is not enabled.
- `rsync-deployments` 9.0.2 only updates its Docker image to Alpine 3.24.2 and rsync 3.5.1. `action.yml` is unchanged, so the inputs used by `publish_snapshot_chart.yml` are unchanged.
### Does this PR introduce _any_ user-facing change?
No. This only changes CI workflows.
### How was this patch tested?
- Checked that all workflow files are parsed by `yq`, and that every `uses:` outside `actions/*`, `github/*`, and `apache/*` is pinned to a 40-character SHA in [approved_patterns.yml](https://github.com/apache/infrastructure-actions/blob/039fd349d6281381d4e7856b4e48fc4cf41c6be3/approved_patterns.yml).
- Checked the new SHAs against the upstream tags with `git ls-remote`.
- Pass the CIs. `publish_snapshot_chart.yml` runs only by schedule or `workflow_dispatch`, so `rsync-deployments` 9.0.2 will be exercised by the next nightly snapshot chart publishing.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Opus 5.5
Closes #977 from dongjoon-hyun/SPARK-60427.
Authored-by: Dongjoon Hyun <do...@apache.org>
Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
.github/workflows/build_and_test.yml | 8 ++++----
.github/workflows/publish_snapshot_chart.yml | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml
index 548b7ac0..c0accd3a 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -43,7 +43,7 @@ jobs:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
- name: Setup Gradle
- uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb
+ uses: gradle/actions/setup-gradle@3f5f9adaf7d9fecd50b5935e54106014257a94e6
with:
cache-provider: basic
- name: Run unit tests
@@ -168,7 +168,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up Minikube
- uses: medyagh/setup-minikube@v0.0.21
+ uses: medyagh/setup-minikube@e9e035a86bbc3caea26a450bd4dbf9d0c453682e
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
@@ -300,7 +300,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up Minikube
- uses: medyagh/setup-minikube@v0.0.21
+ uses: medyagh/setup-minikube@e9e035a86bbc3caea26a450bd4dbf9d0c453682e
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
@@ -353,7 +353,7 @@ jobs:
java-version: 27
distribution: 'temurin'
- name: Setup Gradle
- uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb
+ uses: gradle/actions/setup-gradle@3f5f9adaf7d9fecd50b5935e54106014257a94e6
with:
cache-provider: basic
- name: Linters
diff --git a/.github/workflows/publish_snapshot_chart.yml b/.github/workflows/publish_snapshot_chart.yml
index 494b2662..6922f94f 100644
--- a/.github/workflows/publish_snapshot_chart.yml
+++ b/.github/workflows/publish_snapshot_chart.yml
@@ -36,7 +36,7 @@ jobs:
java-version: 25
distribution: 'temurin'
- name: Setup Gradle
- uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb
+ uses: gradle/actions/setup-gradle@3f5f9adaf7d9fecd50b5935e54106014257a94e6
with:
cache-provider: basic
- name: Build Operator
@@ -56,7 +56,7 @@ jobs:
helm repo index tmp/$DIR --url https://nightlies.apache.org/spark/$DIR
helm show chart tmp/$DIR/spark-kubernetes-operator-*.tgz
- name: Upload
- uses: burnett01/rsync-deployments@155b6d6c1219ab2224c20c58d423a3f1b850395f
+ uses: burnett01/rsync-deployments@2cbb5ed94b73d111d07a40b071b1c7d3c0272435
with:
switches: -avzr
path: build-tools/helm/tmp/*
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org