Skip to content

Commit

Permalink
github-secrets: use keyless (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Jun 20, 2024
1 parent ab8d985 commit d0b3530
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,27 +64,15 @@ jobs:
run: zip -r packages.zip packages/
working-directory: build

- name: 'Get service account'
uses: hashicorp/[email protected]
- uses: elastic/oblt-actions/google/[email protected]
with:
url: ${{ secrets.VAULT_ADDR }}
roleId: ${{ secrets.VAULT_ROLE_ID }}
secretId: ${{ secrets.VAULT_SECRET_ID }}
method: approle
secrets: |
secret/observability-team/ci/apm-agent-php-bucket service-account | SERVICE_ACCOUNT ;
- name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ env.SERVICE_ACCOUNT }}'
project-number: '911195782929'

- id: 'upload-file'
uses: 'google-github-actions/upload-cloud-storage@v2'
with:
path: "${{ env.BUILD_PACKAGES }}.zip"
destination: "${{ env.BUCKET_NAME }}/${{ github.run_id }}"
predefinedAcl: "publicRead"

- id: buildkite-run
uses: elastic/oblt-actions/buildkite/[email protected]
Expand Down

0 comments on commit d0b3530

Please sign in to comment.