Skip to content

Supabase Github Actions fail for edge function deployment with --no-verify-jwt #37219

Open

Description

@harrysondubs

Supabase Github Actions Bug Report (--no-verify-jwt issue)

Describe the bug

  • Supabase supports Github actions through the use of .yaml files in a .github/workflows directory (documentation)
  • To deploy edge functions without the use of JWT, a --no-verify-jwt flag can be appended to the action command
  • To deploy all but one of our edge functions with JWT, we did the following:
- run: supabase functions deploy
- run: supabase functions deploy example-function-name --no-verify-jwt
  • This worked for several months, but recently the single edge function example-function-name has been automatically re-enabling JWT during every Github Actions deploy, despite the --no-verify-jwt flag.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Create two edge functions: example-function-1 and example-function-2
  2. Create a Github Actions file based on this template
  3. Add the following line at the bottom of your Github Actions file: - run: supabase functions deploy example-function-2 --no-verify-jwt
  4. Deploy your code via Github
  • OBSERVED: example-function-1 and example-function-2 both require JWT
  • INTENDED: example-function-1 requires JWT, while example-function-2 does not

Expected behavior

  • When deploying an edge function with the --no-verify-jwt flag within a Github Actions file, the function should not require JWT verification

System information

  • Version of supabase-js: 2.22.6
  • Version of Node.js: v23.5.0

Additional context

This was working with no changes for several months and then broke. May have something to do with upgrading Supabase version, but the code remained unchanged.

Confirmations

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Activity

  1. added
    bug
    on Jul 16, 2025
  2. added
    external-issue
    on Jul 16, 2025
  3. harrysondubs commented on Jul 16, 2025

    @harrysondubs
    Author

    I was able to solve this issue for myself by adding the following to my supabase/config.toml file:

    ## Disable JWT verification for the example-function-2 function
    [functions.example-function-2]
    verify_jwt = false
    

    However, I do not consider this bug closed, as my original implementation with the --no-verify-jwt flag should work as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugedge functionsexternal-issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions