Skip to content

Commit

Permalink
ci: fix workflows using new version of google secrets GHA (#3995)
Browse files Browse the repository at this point in the history
  • Loading branch information
satish-ravi authored Jul 26, 2023
1 parent 914ee55 commit d045272
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/automerge-crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ jobs:
permissions:
pull-requests: write
steps:
- uses: google-github-actions/auth@v1
with:
project_id: celo-mobile-mainnet
credentials_json: ${{ secrets.MAINNET_SERVICE_ACCOUNT_KEY }}
- name: Google Secrets
id: google-secrets
uses: google-github-actions/get-secretmanager-secrets@v1.0.1
with:
secrets: |-
VALORA_BOT_TOKEN:projects/1027349420744/secrets/VALORA_BOT_TOKEN
credentials: ${{ secrets.MAINNET_SERVICE_ACCOUNT_KEY }}
- uses: actions/checkout@v3
- uses: actions/github-script@v5
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/automerge-translation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ jobs:
permissions:
pull-requests: write
steps:
- uses: google-github-actions/auth@v1
with:
project_id: celo-mobile-mainnet
credentials_json: ${{ secrets.MAINNET_SERVICE_ACCOUNT_KEY }}
- name: Google Secrets
id: google-secrets
uses: google-github-actions/get-secretmanager-secrets@v1.0.1
with:
secrets: |-
VALORA_BOT_TOKEN:projects/1027349420744/secrets/VALORA_BOT_TOKEN
credentials: ${{ secrets.MAINNET_SERVICE_ACCOUNT_KEY }}
- uses: actions/checkout@v3
- uses: actions/github-script@v5
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/bump-app-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@ jobs:
env:
BRANCH_NAME: valora-bot/bump-app-version
steps:
- uses: google-github-actions/auth@v1
with:
project_id: celo-mobile-mainnet
credentials_json: ${{ secrets.MAINNET_SERVICE_ACCOUNT_KEY }}
- name: Google Secrets
id: google-secrets
uses: google-github-actions/get-secretmanager-secrets@v1.0.1
with:
secrets: |-
BOT_SSH_KEY:projects/1027349420744/secrets/BOT_SSH_PRIVATE_KEY
VALORA_BOT_TOKEN:projects/1027349420744/secrets/VALORA_BOT_TOKEN
credentials: ${{ secrets.MAINNET_SERVICE_ACCOUNT_KEY }}
- uses: webfactory/ssh-agent@v0.5.3
with:
ssh-private-key: ${{ steps.google-secrets.outputs.BOT_SSH_KEY }}
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/update-licenses-disclaimer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@ jobs:
env:
BRANCH_NAME: valora-bot/update-licenses-disclaimer
steps:
- uses: google-github-actions/auth@v1
with:
project_id: celo-mobile-mainnet
credentials_json: ${{ secrets.MAINNET_SERVICE_ACCOUNT_KEY }}
- name: Google Secrets
id: google-secrets
uses: google-github-actions/get-secretmanager-secrets@v1.0.1
with:
secrets: |-
BOT_SSH_KEY:projects/1027349420744/secrets/BOT_SSH_PRIVATE_KEY
VALORA_BOT_TOKEN:projects/1027349420744/secrets/VALORA_BOT_TOKEN
credentials: ${{ secrets.MAINNET_SERVICE_ACCOUNT_KEY }}
- uses: webfactory/ssh-agent@v0.5.3
with:
ssh-private-key: ${{ steps.google-secrets.outputs.BOT_SSH_KEY }}
Expand Down

0 comments on commit d045272

Please sign in to comment.