Skip to content

s

s #5

name: Scratch Workflow
on:
push:
branches: [bkellam/release_cleanup]
workflow_dispatch:
jobs:
scratch:
runs-on: ubuntu-latest
environment: staging
steps:

Check failure on line 13 in .github/workflows/scratch-workflow.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/scratch-workflow.yml

Invalid workflow file

You have an error in your yaml syntax on line 13
permissions:
contents: 'read'
# Requird for OIDC auth with GCP.
# @see: https://docs.github.com/en/actions/security-for-github-actions/security-hardening-your-deployments/about-security-hardening-with-openid-connect#adding-permissions-settings
id-token: 'write'
# - name: 'Checkout'
# uses: 'actions/checkout@v3'
# with:
# submodules: "true"
- name: Print environment variable
env:
NEXT_PUBLIC_SOURCEBOT_CLOUD_ENVIRONMENT: ${{ vars.NEXT_PUBLIC_SOURCEBOT_CLOUD_ENVIRONMENT }}
run: echo $NEXT_PUBLIC_SOURCEBOT_CLOUD_ENVIRONMENT
# @see: https://github.com/google-github-actions/auth?tab=readme-ov-file#direct-wif
- name: 'Google auth'
id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
project_id: '${{ secrets.GCP_PROJECT_ID }}'
workload_identity_provider: '${{ secrets.GCP_WIF_PROVIDER }}'