Skip to content

Commit 89904a7

Browse files
chore: env.GITHUB_ACTOR (#181)
Update GitHub credentials source in release workflow for `stage` profile Changed the Maven settings to use environment variables instead of secrets for GitHub credentials. This enhances security by aligning with the recommended best practices for GitHub Actions.
1 parent 8220dbf commit 89904a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ jobs:
5454
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
5555
<servers><server>
5656
<id>github-pkg</id>
57-
<username>${{ secrets.GITHUB_USERNAME }}</username>
58-
<password>${{ secrets.GITHUB_TOKEN }}</password>
57+
<username>${{ env.GITHUB_ACTOR }}</username>
58+
<password>${{ env.GITHUB_TOKEN }}</password>
5959
</server></servers>
6060
</settings>
6161
EOF

0 commit comments

Comments
 (0)