Skip to content

Commit

Permalink
Use pipelines-credentials for downloading actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Resonance1584 committed Aug 27, 2024
1 parent c490aa7 commit a089ea9
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/pipelines-root.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,28 @@ jobs:
name: Detect Infrastructure Changes
runs-on: ${{ fromJSON(inputs.runner) }}
steps:
- name: Fetch Gruntwork Read Token
id: fetch-piplines-gruntwork-read-token
uses: github.com/gruntwork-test/pipelines-credentials
with:
PIPELINES_TOKEN_PATH: "pipelines-read/gruntwork-io"
FALLBACK_TOKEN: ${{ secrets.PIPELINES_READ_TOKEN }}

- name: Fetch Org Read Token
id: fetch-piplines-org-read-token
uses: github.com/gruntwork-test/pipelines-credentials
with:
PIPELINES_TOKEN_PATH: "pipelines-read/${{ env.GITHUB_REPOSITORY_OWNER }}"
FALLBACK_TOKEN: ${{ secrets.PIPELINES_READ_TOKEN }}

- name: Checkout Pipelines Actions
id: checkout_actions
uses: actions/checkout@v4
with:
path: pipelines-actions
repository: gruntwork-io/pipelines-actions
ref: ${{ env.PIPELINES_ACTIONS_VERSION }}
token: ${{ secrets.PIPELINES_READ_TOKEN }}
token: ${{ steps.fetch-pipelines-gruntwork-read-token.PIPELINES_TOKEN }}

- name: Validate PIPELINES_READ_TOKEN
if: always() && steps.checkout_actions.conclusion != 'success'
Expand Down

0 comments on commit a089ea9

Please sign in to comment.