You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The secrets param format doesn't seem to match the documentation?
Expected behavior
Expected this format to work:
secrets: |-
# As an environment variable:
KEY1=secret-key-1:latest
But it seems that only the old format works currently?
secrets: |-
KEY1=projects/p/secrets/s/versions/v
Observed behavior
Error: google-github-actions/deploy-cloud-functions failed with: failed to parse secret reference "ASTRAL_LOCATION:latest": unknown format. Secrets should be of the format "projects/p/secrets/s/versions/v".
Action YAML
name: Deployon:
push:
branches:
- masterpull_request:
branches:
- masterjobs:
deploy:
runs-on: ubuntu-latestpermissions:
contents: 'read'id-token: 'write'concurrency: "prod"steps:
- uses: 'actions/[email protected]'
- id: 'auth'name: 'Authenticate to Google Cloud'uses: 'google-github-actions/[email protected]'with:
workload_identity_provider: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }}service_account: ${{ vars.GCP_SERVICE_ACCOUNT }}
- uses: actions/[email protected]with:
python-version: 3.11
- name: Install poetryuses: abatilo/[email protected]
- name: Install dependenciesrun: poetry install
- name: Testrun: poetry run pytest -v
- name: Generate Requirementsrun: poetry export --output=requirements.txt
- id: 'deploy'uses: 'google-github-actions/[email protected]'with:
name: ${{ vars.GCP_CLOUD_FUNCTION_NAME }}runtime: 'python311'environment: GEN_2max_instance_count: 2entry_point: "update"# TODO put these all in github or all in gcpenvironment_variables: |- DEVICE_ID=${{ vars.DEVICE_ID}}secrets: |- ASTRAL_LOCATION=ASTRAL_LOCATION:latest SUREPY_AUTH_TOKEN=SUREPY_AUTH_TOKEN:latest
- name: Trigger deployed functionrun:
curl ${{ steps.deploy.outputs.url }} --fail-with-body
TL;DR
The
secrets
param format doesn't seem to match the documentation?Expected behavior
Expected this format to work:
But it seems that only the old format works currently?
Observed behavior
Error: google-github-actions/deploy-cloud-functions failed with: failed to parse secret reference "ASTRAL_LOCATION:latest": unknown format. Secrets should be of the format "projects/p/secrets/s/versions/v".
Action YAML
Log output
Additional information
No response
The text was updated successfully, but these errors were encountered: