gh secret set

Create or update GitHub secrets. More information: https://cli.github.com/manual/gh_secret_set.

gh secret set {{name}}

gh secret set {{name}} < {{path/to/file}}

gh secret set {{name}} --body {{value}} --repo {{owner}}/{{repository}}

gh secret set {{name}} --org {{organization}} --repos "{{repository1,repository2,...}}"

gh secret set {{name}} --org {{organization}} --visibility {{all|private|selected}}