BUILD-10447 Fix GITHUB_ACTION_PATH usage in action files#215
Merged
julien-carsique-sonarsource merged 1 commit intomasterfrom Feb 17, 2026
Merged
Conversation
Copilot started reviewing on behalf of
julien-carsique-sonarsource
February 16, 2026 17:03
View session
There was a problem hiding this comment.
Pull request overview
This pull request fixes reliability issues with GITHUB_ACTION_PATH usage in GitHub Actions by replacing it with action-specific environment variables. The GITHUB_ACTION_PATH environment variable can be unreliable when actions run in containers or when local actions call other local actions, as documented in the repository's CONTRIBUTE.md.
Changes:
- Replace
${GITHUB_ACTION_PATH}with$ACTION_PATH_BUILD_GRADLEin build-gradle action - Replace
${GITHUB_ACTION_PATH}with$ACTION_PATH_BUILD_MAVENin build-maven action - Replace
${GITHUB_ACTION_PATH}with$ACTION_PATH_CONFIG_GRADLEin config-gradle action (2 occurrences)
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| config-gradle/action.yml | Updated 2 references to use $ACTION_PATH_CONFIG_GRADLE for copying resources and running version script |
| build-maven/action.yml | Updated reference to use $ACTION_PATH_BUILD_MAVEN for deploy-artifacts.sh script |
| build-gradle/action.yml | Updated reference to use $ACTION_PATH_BUILD_GRADLE for build.sh script |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
mikolaj-matuszny-ext-sonarsource
approved these changes
Feb 17, 2026
6a1e15f to
c7d43d1
Compare
Replace unreliable ${GITHUB_ACTION_PATH} with action-specific variables:
- build-gradle: Use $ACTION_PATH_BUILD_GRADLE
- build-maven: Use $ACTION_PATH_BUILD_MAVEN
- config-gradle: Use $ACTION_PATH_CONFIG_GRADLE (2 occurrences)
These variables are already defined via ${{ github.action_path }} to ensure
reliability when running actions in containers or when using local actions
within other local actions, as documented in CONTRIBUTE.md.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
c7d43d1 to
6f6f046
Compare
SonarQube reviewer guide
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Replace unreliable
${GITHUB_ACTION_PATH}with action-specific variables:$ACTION_PATH_BUILD_GRADLE$ACTION_PATH_BUILD_MAVEN$ACTION_PATH_CONFIG_GRADLE(2 occurrences)These variables are already defined via
${{ github.action_path }}to ensure reliability when running actions in containers or when using local actions within other local actions, as documented in CONTRIBUTE.md.Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com
Tested by: