Create or update a repository secret from stdin.

Section: GitHub Actions and Workflows

Set repo secret

bash
bash
gh secret set AWS_ACCESS_KEY_ID < aws_access_key_id.txt
Explanation

Create or update a repository secret from stdin.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing GitHub Actions and Workflows
List repo secrets
List Actions secrets for the repo.
OpenIn sheetbashsame section
List workflows
List workflows in the current repository.
OpenIn sheetbashsame section
View workflow details
Show details for a workflow.
OpenIn sheetbashsame section
Trigger a workflow
Dispatch a workflow with inputs.
OpenIn sheetbashsame section
Enable a workflow
Enable a disabled workflow.
OpenIn sheetbashsame section
Disable a workflow
Disable a workflow.
OpenIn sheetbashsame section