Skip to content

Commit 2debe28

Browse files
committed
Use environment variable in GitHub workflow. (#700)
In order to minimize risk of injection attacks.
1 parent ab7f368 commit 2debe28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
with:
1515
java-version: 11
1616
- name: Publish package
17-
run: ./gradlew publishAllPublicationsToGitHubPackagesRepository -PpublishVersion=${{ github.ref_name }}
17+
run: ./gradlew publishAllPublicationsToGitHubPackagesRepository -PpublishVersion="$REFNAME"
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20-
20+
REFNAME: ${{ github.ref_name }}

0 commit comments

Comments
 (0)