Skip to content

Cannot add GitHub Actions Secret with GITHUB_ prefix #11

@bfrancom

Description

@bfrancom

Describe the bug

GitHub Actions does not allow any secret or variable to begin with GITHUB_ as those are reserved variable prefixes.

Steps to reproduce the behavior

  1. Go to the 'repo->Actions'
  2. Click on 'New repository secret' button
  3. Try to add secret with GITHUB_ prefix
  4. See error

Expected behavior

This may have worked in the past, but is now deprecated and does not work

Screenshots

image

Additional context

See GitHub docs:
https://docs.github.com/en/actions/learn-github-actions/variables#naming-conventions-for-configuration-variables

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions