Skip to content

Add id token perm

Add id token perm #3

Workflow file for this run

concurrency:
group: "test-gar-upload"
"on":
push:
branches:
- "test-gar-upload/[0-9]+"
jobs:
runTest:
runs-on: "ubuntu-x64"
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: "Setup Google Auth"
uses: google-github-actions/auth@v2
with:
project_id: grafanalabs-workload-identity
workload_identity_provider: projects/304398677251/locations/global/workloadIdentityPools/github/providers/github-provider
- name: "Upload artifacts"
run: |
echo "I am a test" > test.txt
gcloud artifacts generic upload
--source-directory=${{env.path}}
--package=loki-testing
--version ${{ github.sha }}
env:
path: "test.txt"