Skip to content

BUILD-10447 Fix GITHUB_ACTION_PATH usage in action files#215

Merged
julien-carsique-sonarsource merged 1 commit intomasterfrom
fix/jcarsique/BUILD-10447-githubActionPath
Feb 17, 2026
Merged

BUILD-10447 Fix GITHUB_ACTION_PATH usage in action files#215
julien-carsique-sonarsource merged 1 commit intomasterfrom
fix/jcarsique/BUILD-10447-githubActionPath

Conversation

@julien-carsique-sonarsource
Copy link
Contributor

@julien-carsique-sonarsource julien-carsique-sonarsource commented Feb 16, 2026

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

Tested by:

@hashicorp-vault-sonar-prod
Copy link

hashicorp-vault-sonar-prod bot commented Feb 16, 2026

BUILD-10447

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

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_GRADLE in build-gradle action
  • Replace ${GITHUB_ACTION_PATH} with $ACTION_PATH_BUILD_MAVEN in build-maven action
  • Replace ${GITHUB_ACTION_PATH} with $ACTION_PATH_CONFIG_GRADLE in 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.

@julien-carsique-sonarsource julien-carsique-sonarsource marked this pull request as draft February 16, 2026 17:47
@mikolaj-matuszny-ext-sonarsource mikolaj-matuszny-ext-sonarsource marked this pull request as ready for review February 17, 2026 08:39
@julien-carsique-sonarsource julien-carsique-sonarsource force-pushed the fix/jcarsique/BUILD-10447-githubActionPath branch from 6a1e15f to c7d43d1 Compare February 17, 2026 09:00
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>
@julien-carsique-sonarsource julien-carsique-sonarsource force-pushed the fix/jcarsique/BUILD-10447-githubActionPath branch from c7d43d1 to 6f6f046 Compare February 17, 2026 09:07
@sonarqubecloud
Copy link

@julien-carsique-sonarsource julien-carsique-sonarsource merged commit 20da730 into master Feb 17, 2026
11 checks passed
@julien-carsique-sonarsource julien-carsique-sonarsource deleted the fix/jcarsique/BUILD-10447-githubActionPath branch February 17, 2026 09:10
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.

3 participants