incubator-baremaps icon indicating copy to clipboard operation
incubator-baremaps copied to clipboard

CI crash if pull request coming from Dependabot because of Sonarcloud token

Open swerky opened this issue 4 years ago • 0 comments

Dependabot pull request will trigger the CI but won't be able to generate the report for Sonarcloud because he doesn't have access to the SONAR_TOKEN anymore.

The quick fix is to add a condition on the step if the pull request comes from Dependabot.

if: ${{ github.actor != 'dependabot[bot]' }}

Starting March 1st, 2021 workflow runs that are triggered by Dependabot […] will be treated as if they were opened from a repository fork.

Sources:

  • https://community.sonarsource.com/t/youre-not-authorized-to-run-analysis-and-github-bots/41994/4
  • https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/

swerky avatar Jul 30 '21 11:07 swerky