Skip to content

Re-add missed allowlist additions#696

Merged
potiuk merged 3 commits intoapache:mainfrom
raboof:restore-missed-allowlists
Apr 12, 2026
Merged

Re-add missed allowlist additions#696
potiuk merged 3 commits intoapache:mainfrom
raboof:restore-missed-allowlists

Conversation

@raboof
Copy link
Copy Markdown
Member

@raboof raboof commented Apr 12, 2026

These were missed in the period that branch protection prevented the workflow from copying allowlists from the dummy workflow to actions.yml.

(#689 added them to approved_patterns.yml, but once the automated jobs were running again they were removed again because they didn't show up in actions.yml)

These were missed in the period that branch protection
prevented the workflow from copying allowlists from the
dummy workflow to `actions.yml`.

(apache#689 added them to `approved_patterns.yml`, but once the
automated jobs were running again they were removed again
because they didn't show up in `actions.yml`)
Copy link
Copy Markdown
Member

@erisu erisu left a comment

Choose a reason for hiding this comment

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

It appears that the new tag version for erisu/license-checker-action has been written incorrectly.

Comment thread actions.yml Outdated
potiuk and others added 2 commits April 12, 2026 18:09
Co-authored-by: エリス <erisu@users.noreply.github.com>
Signed-off-by: Jarek Potiuk <jarek@potiuk.com>
@potiuk potiuk merged commit 426773e into apache:main Apr 12, 2026
9 checks passed
Comment thread actions.yml
tag: v2.4
expires_at: 2026-07-05
363572b2714d25a059fceb2fa332a98e7ea3baff:
tag: v2.4
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.

This should also be 2.4.1

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

good observation, #698

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.

Ah - I missed that @raboof modified the dummy-workflow.yml.

So I copied the output from the last failed "Handle Dependabot Upgrade" https://github.com/apache/infrastructure-actions/actions/runs/24309558948/job/70976723553

The "actions.yml" and "approved-actions.yml" files are generated automatically from dependabot.yml -> this is why I have not generated it in the first place (so @raboof @dave2wave.

So really this one here was not "missing entries" - the updates were just not pushed by the "Handle Dependabot Update" workflow - because we did not have branch protection removed yet) - until

In #689 I only added "approved actions" to unblock people but I wanted to let the "Handle Dependabot Upgrade" do the job and update "actions.yml" automatically - yes, it was lazy likely.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

In #689 I only added "approved actions" to unblock people but I wanted to let the "Handle Dependabot Upgrade" do the job and update "actions.yml" automatically - yes, it was lazy likely.

Not sure if 'lazy' is the word, you were quite correct that ideally actions.yml would have been automatically updated based on dummy.yml - but since that wasn't triggered back when branch protection was still enabled I figured I'd 'help it along' with this PR.

dongjoon-hyun added a commit to apache/spark-kubernetes-operator that referenced this pull request Apr 15, 2026
### What changes were proposed in this pull request?

This PR adds `gradle/actions/setup-gradle` to GitHub Actions workflows (`build_and_test.yml`, `publish_snapshot_chart.yml`) and removes the `cache: 'gradle'` option from `actions/setup-java` and `Java Tool Chain caching` step since `setup-gradle` handles Gradle caching.

### Why are the changes needed?

The `gradle/actions/setup-gradle` action is the officially recommended way to set up Gradle in GitHub Actions, offering several advantages over the `cache: 'gradle'` option in `actions/setup-java`:

- actions/setup-java#588
- apache/infrastructure-actions#681
- apache/infrastructure-actions#696

Advantages:
- **More efficient caching**: Provides more sophisticated and optimized caching of Gradle User Home between invocations, with detailed reporting of cache usage and configuration options.
- **Dependency Graph support**: Can generate and submit a GitHub Dependency Graph for the project, enabling Dependabot security alerts.
- **Build Scan link capture**: Automatically captures Build Scan links from the build, making them easier to locate in workflow runs.
- **Separation of concerns**: `actions/setup-java` is a general-purpose Java setup tool. Delegating Gradle-specific setup to the dedicated first-party action avoids sub-optimal caching strategies (`actions/setup-java#588`).

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

CI should pass with the updated workflows.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (claude-opus-4-6)

Closes #621 from dongjoon-hyun/SPARK-56401.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants