Skip to content

Commit 33b3591

Browse files
committed
fix: avoid Avoid expanding secrets in a run block check failure in SonarCloud Code Analysis
1 parent 66b71f2 commit 33b3591

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/publish-marketplace.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,11 @@ jobs:
111111
112112
- name: Build nightly version
113113
if: (github.event_name == 'schedule' && steps.changes_check.outputs.has_changes == 'true') || github.event_name == 'workflow_dispatch'
114+
env:
115+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114116
run: |
115117
echo "Building nightly version from source..."
116-
if ! ./gradlew buildPlugin -Pgpr.username=rhdevelopers-ci -Pgpr.token=${{ secrets.GITHUB_TOKEN }} -PprojectVersion=${{ steps.version_info.outputs.VERSION }}; then
118+
if ! ./gradlew buildPlugin -Pgpr.username=rhdevelopers-ci -Pgpr.token="$GITHUB_TOKEN" -PprojectVersion=${{ steps.version_info.outputs.VERSION }}; then
117119
echo "Error: Gradle build failed"
118120
exit 1
119121
fi

0 commit comments

Comments
 (0)