Skip to content

Update valitydev/java-workflow action to v4#39

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/valitydev-java-workflow-4.x
Open

Update valitydev/java-workflow action to v4#39
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/valitydev-java-workflow-4.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 14, 2026

This PR contains the following updates:

Package Type Update Change
valitydev/java-workflow action major v3v4

Release Notes

valitydev/java-workflow (valitydev/java-workflow)

v4

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner February 14, 2026 00:01
jobs:
build:
uses: valitydev/java-workflow/.github/workflows/maven-service-build.yml@v3
uses: valitydev/java-workflow/.github/workflows/maven-service-build.yml@v4

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}

Copilot Autofix

AI about 1 month ago

In general terms, the fix is to explicitly define a permissions section for the workflow (globally) or for the build job so that the GITHUB_TOKEN is limited to the minimum necessary scopes, instead of inheriting potentially broad repository defaults. For a typical Maven build that only needs to fetch source and dependencies, contents: read is an appropriate minimal starting point.

The best targeted fix without changing existing functionality is to add a permissions block to the build job in .github/workflows/build.yml. Since this job simply calls a reusable workflow, and we have no evidence it requires write access, we will set contents: read at the job level. This ensures that, regardless of org/repo defaults, the token available to this job and passed to the reusable workflow remains read-only for repository contents. Concretely, in .github/workflows/build.yml, under jobs:, within the build: job and at the same indentation level as uses:, insert:

    permissions:
      contents: read

No additional methods, imports, or definitions are needed; this is purely a YAML configuration change inside the existing workflow file.

Suggested changeset 1
.github/workflows/build.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -7,4 +7,6 @@
 
 jobs:
   build:
+    permissions:
+      contents: read
     uses: valitydev/java-workflow/.github/workflows/maven-service-build.yml@v4
EOF
@@ -7,4 +7,6 @@

jobs:
build:
permissions:
contents: read
uses: valitydev/java-workflow/.github/workflows/maven-service-build.yml@v4
Copilot is powered by AI and may make mistakes. Always verify output.
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.

0 participants