Revert "[ci] Remove DANGER_GITHUB_API_TOKEN"

This reverts commit 23e5e2d8b478133fec4149d9bd0e7d35c0335640.

We still need a separate token for danger.
This commit is contained in:
Andreas Dangel
2021-10-15 22:34:49 +02:00
parent 4bfb35cb86
commit cbba7ec05c
2 changed files with 16 additions and 8 deletions

View File

@ -7,6 +7,11 @@ It uses the common scripts from [build-tools](https://github.com/pmd/build-tools
This files contains the following environment variables: This files contains the following environment variables:
* DANGER_GITHUB_API_TOKEN: Token for danger to add comments to PRs as <https://github.com/pmd-test>.
The token needs the scope "public_repo". Note: The default GITHUB_TOKEN can't be used, because
danger runs in pull request builds from fork and the default GITHUB_TOKEN has read-only access there
and can't write comments. Therefore the personal access token of the bot account "pmd-test" is used.
pmd-test has no commit permissions, but can comment on any public repo, including pmd/pmd.
* PMD_CI_CHUNK_TOKEN: Token for uploading reports to chunk.io * PMD_CI_CHUNK_TOKEN: Token for uploading reports to chunk.io
The file is encrypted, so that the tokens are not automatically disabled when github detects them The file is encrypted, so that the tokens are not automatically disabled when github detects them

View File

@ -1,11 +1,14 @@
-----BEGIN PGP MESSAGE----- -----BEGIN PGP MESSAGE-----
jA0ECQMCMvDDP12HX9n/0sBqAQo9gWGlWW/NwGuLvOhyujxi1TToPHCYbxMnp+w7 jA0ECQMC6NJFOgCtLK790sDsAV7zf22dX5W7Ki3LdPBesQvoN+fU5xjNcu9ytrOQ
NFA/jRRpt8ou1pOqtaTBlHsF/KidwbyZ5H9yexvnUZ1yIaUMD0KxU5OiT5B4yeg0 pNDQybzmGkBU7gJM5sasTEv2OKp7h+nt8xSfaE8u0i4G0+yLGZKxbCrZoHnoBiaW
CEVaF1F6WneoHH4NHNKJ29EUdoKU4kaVEIHQXbN8M1c+DXyOiLOFUMQR3r75coEh udpjvvxyKdEV8wn1DPsh/W9ARmxdJezpreUwmwExamYiVEXsWOr2DWST+DPVX+4I
NfHFa6O2gZT6l1YXmiDi8M5igtSE/l3qYvqGfKqwYSRRSkfmI5s9nfMeqvf57e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