google-github-actions / deploy-cloud-functions

A GitHub Action that deploys source code to Google Cloud Functions.
https://cloud.google.com/functions
Apache License 2.0
311 stars 66 forks source link

Option for allowing unauthenticated requests #399

Closed aflmp closed 4 months ago

aflmp commented 9 months ago

Hi there, Is there an option for allowing unauthenticated requests to the cloud-function just like https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--[no-]allow-unauthenticated ? I'm only seeing authenticated requests being allowed right now, below is the config that i'm using

- id: deploy
      uses: google-github-actions/deploy-cloud-functions@v1
      with:
        name: some-function
        runtime: go121
Kurtz1993 commented 4 months ago

@aflmp I think it that using the option:

ingress_settings: ALLOW_ALL will do that.

Try updating your settings as follows:

- id: deploy
      uses: google-github-actions/deploy-cloud-functions@v1
      with:
        name: some-function
        runtime: go121
        ingress_settings: ALLOW_ALL