Skip to content

Commit

Permalink
Generate Develocity short-lived access token in relevant workflows (#12)
Browse files Browse the repository at this point in the history
With this PR, a short-lived access token will be used instead of the
access key in workflows.
  • Loading branch information
erichaagdev authored Nov 7, 2024
2 parents f892f05 + db3c72f commit 36c8414
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
java-version: '11'
distribution: 'temurin'

- uses: gradle/actions/setup-gradle@v3
- uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}

- run: ./gradlew build
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}
6 changes: 3 additions & 3 deletions .github/workflows/gradle-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:
distribution: 'temurin'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}

- name: Generate reference script with version
run: ./gradlew promote -Pversion=${{ inputs.version }}
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}

- name: Commit & push changes
uses: stefanzweifel/git-auto-commit-action@v5
Expand Down

0 comments on commit 36c8414

Please sign in to comment.