Skip to content

Commit

Permalink
Test opengen bucket permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuebert committed Jan 27, 2025
1 parent 59c7a10 commit 28c2e9f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/opengen_bucket_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test opengen bucket permissions

on:
push:
branches:
- main


jobs:
Deploy:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'

steps:
- uses: 'actions/checkout@v4'

- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v2

- name: Authenticate with Google Cloud
uses: 'google-github-actions/[email protected]'
with:
project_id: 'opengen-437315'
workload_identity_provider: 'projects/557148610837/locations/global/workloadIdentityPools/gen-website-private-publishers/providers/github'
service_account: '[email protected]'
audience: '//iam.googleapis.com/projects/557148610837/locations/global/workloadIdentityPools/gen-website-private-publishers/providers/github'

- name: Deploy test file to Google Cloud Storage
run: |
echo "This is a test file" > test-file.txt
BUCKET_PATH="gs://opengen-websites/test-file.txt"
gcloud storage cp test-file.txt $BUCKET_PATH
echo "Test file deployed to $BUCKET_PATH"

0 comments on commit 28c2e9f

Please sign in to comment.