Using secrets in PRs for regular contributors (non maintainers) #866
-
Hello, I currently use CirrusCI for the majority of my opensource projects and I have been very happy with it. However, recently I stumbled across a dilemma: There are some integration services that require secrets (e.g. access tokens) to be set in the CI environment (one example of such services is coveralls) to be able to work. It is a difficult problem since it involves security risks, but I was wondering if anyone knows if there is any best practice/way around this problem... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
You are a right it's a tough one from the security perspective. If you are OK to have the Coverall token to be at a potential risk you can add it as plain text in your repository settings: This way the token will be visible in the settings only for people with write access to the repository. But still there might be a PR that does On the other hand we might add a new policy beside |
Beta Was this translation helpful? Give feedback.
You are a right it's a tough one from the security perspective. If you are OK to have the Coverall token to be at a potential risk you can add it as plain text in your repository settings:
This way the token will be visible in the settings only for people with write access to the repository. But still there might be a PR that does
echo $COVERALLS_REPO_TOKEN
to still the token.On the other hand we might add a new policy beside
Only users with write access
and call itOnly users with write access and collaborators
. But still the first PR from a user won't have the token decrypted in this case.