Skip to content

Commit

Permalink
prevent gha credentials from leaking
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmayorga committed Dec 1, 2023
1 parent 9c0827f commit 6c128ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,17 @@ jobs:
cache: yarn
- name: Install Dependencies
run: yarn install

- name: Build
run: yarn build:functions

- name: Archive functions artifacts
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # @v3.1.2
with:
name: func-dist
retention-days: 4
path: functions/dist

# !dist/**/*.md

deploy-functions:
Expand All @@ -77,6 +80,8 @@ jobs:
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # @v3.0.2
with:
name: func-dist
path: ./web-funciton

- name: debug
run: |
echo "Using GH environment -> ${{ inputs.deploy_env && 'production' || 'gcloud-dev' }} "
Expand All @@ -88,6 +93,7 @@ jobs:
with:
workload_identity_provider: '${{ secrets.GWIP }}'
service_account: '${{ secrets.GSA }}'

- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@d51b5346f85640ec2aa2fa057354d2b82c2fcbce # v1.0.1

Expand Down

0 comments on commit 6c128ee

Please sign in to comment.