The secrets of repositories using github actions can be modified by a collaborator using the REST API #159727
Unanswered
jorgedomingomasmovil
asked this question in
Actions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
Hello,
The secrets of repositories using github actions can be modified by a collaborator using the REST API. I'm not sure if this is a bug or an expected behavior
Is there a way to limit this behavior with github permissions, so that collaborators cannot modify the values of secrets using the REST API.
To recreate it you can have two users and add one as a contributor to a private repository. Create with the owner of the repository the secret in Settings > Secrets and Variables > Actions > New repository secret
With the user with the role of collaborator the repository is cloned and using ghcli you can change the value of the created secret. The command is:
gh secret set <secret_name> -b "secret_value_changed_by_collaborator"thanks in advance for the help
Beta Was this translation helpful? Give feedback.
All reactions