diff --git a/.github/workflows/beta-release.yml b/.github/workflows/beta-release.yml index d68c1671..2870f8b5 100644 --- a/.github/workflows/beta-release.yml +++ b/.github/workflows/beta-release.yml @@ -18,4 +18,5 @@ jobs: gpg-passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }} skyflow-credentials: ${{ secrets.SKYFLOW_CREDENTIALS }} >> .env test-expired-token: ${{ secrets.TEST_EXPIRED_TOKEN }} >> .env - test-reusable-token: ${{ secrets.TEST_REUSABLE_TOKEN }} >> .env \ No newline at end of file + test-reusable-token: ${{ secrets.TEST_REUSABLE_TOKEN }} >> .env + pat-actions: ${{ secrets.PAT_ACTIONS }} \ No newline at end of file diff --git a/.github/workflows/internal-release.yml b/.github/workflows/internal-release.yml index ce1145b3..ac14e1b8 100644 --- a/.github/workflows/internal-release.yml +++ b/.github/workflows/internal-release.yml @@ -24,4 +24,5 @@ jobs: gpg-passphrase: ${{ secrets.JFROG_GPG_PASSPHRASE }} skyflow-credentials: ${{ secrets.SKYFLOW_CREDENTIALS }} >> .env test-expired-token: ${{ secrets.TEST_EXPIRED_TOKEN }} >> .env - test-reusable-token: ${{ secrets.TEST_REUSABLE_TOKEN }} >> .env \ No newline at end of file + test-reusable-token: ${{ secrets.TEST_REUSABLE_TOKEN }} >> .env + pat-actions: ${{ secrets.PAT_ACTIONS }} \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d7b3873..f808875c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,3 +18,4 @@ jobs: skyflow-credentials: ${{ secrets.SKYFLOW_CREDENTIALS }} >> .env test-expired-token: ${{ secrets.TEST_EXPIRED_TOKEN }} >> .env test-reusable-token: ${{ secrets.TEST_REUSABLE_TOKEN }} >> .env + pat-actions: ${{ secrets.PAT_ACTIONS }} diff --git a/.github/workflows/shared-build-and-deploy.yml b/.github/workflows/shared-build-and-deploy.yml index 900c2aef..e0193a9e 100644 --- a/.github/workflows/shared-build-and-deploy.yml +++ b/.github/workflows/shared-build-and-deploy.yml @@ -50,6 +50,9 @@ on: test-reusable-token: required: true + pat-actions: + required: true + jobs: publish: runs-on: ubuntu-latest @@ -61,7 +64,9 @@ jobs: # checkout and reused for the automated version-bump push below, so # that push satisfies the branch-protection ruleset's repo-admin # bypass (github-actions[bot] is not a bypass actor). See SK-2986. - token: ${{ secrets.PAT_ACTIONS }} + # Passed through workflow_call.secrets since reusable workflows do + # not inherit the caller's secrets automatically. + token: ${{ secrets.pat-actions }} - name: Set up maven or jfrog repository uses: actions/setup-java@v1