Skip to content

Commit bf792e5

Browse files
SK-2594: add pat token to release workflows
1 parent c5f7fc0 commit bf792e5

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.github/workflows/beta-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ jobs:
1818
skyflow-credentials: ${{ secrets.SKYFLOW_CREDENTIALS }} >> .env
1919
test-expired-token: ${{ secrets.TEST_EXPIRED_TOKEN }} >> .env
2020
test-reusable-token: ${{ secrets.TEST_REUSABLE_TOKEN }} >> .env
21+
pat-token: ${{ secrets.GH_PAT_TOKEN }}

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ jobs:
1818
skyflow-credentials: ${{ secrets.SKYFLOW_CREDENTIALS }} >> .env
1919
test-expired-token: ${{ secrets.TEST_EXPIRED_TOKEN }} >> .env
2020
test-reusable-token: ${{ secrets.TEST_REUSABLE_TOKEN }} >> .env
21+
pat-token: ${{ secrets.GH_PAT_TOKEN }}

.github/workflows/shared-build-and-deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,17 @@ on:
4343
test-reusable-token:
4444
required: true
4545

46+
pat-token:
47+
required: false
48+
4649
jobs:
4750
publish:
4851
runs-on: ubuntu-latest
4952
steps:
5053
- uses: actions/checkout@v2
5154
with:
5255
fetch-depth: 0
56+
token: ${{ secrets.pat-token || secrets.GITHUB_TOKEN }}
5357

5458
- name: Set up maven or jfrog repository
5559
uses: actions/setup-java@v4

0 commit comments

Comments
 (0)