Use GitHub token in GH actions
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 21 Aug 2021 20:48:25 +0000 (22:48 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 21 Aug 2021 20:48:25 +0000 (22:48 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/ci.yml
.github/workflows/generate-typedoc.yml

index 4a560022108a12cf6bb86086987197b39ab25053..b4699c6e61d1276d3fc17d57f83e00ee940e298f 100644 (file)
@@ -50,7 +50,7 @@ jobs:
         if: "github.repository == 'poolifier/poolifier' && matrix.node-version == '14.x'"
         uses: SonarSource/sonarcloud-github-action@master
         env:
-          GITHUB_TOKEN: ${{ secrets.USER_TOKEN }} # Needed to get PR information, if any
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
           SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
 
       - name: Benchmark
index 842f466767741c4b0fd8adce9f4eb2846dc84895..4dfe66abf9cb19d7b03f97958164ff14c53b20bf 100644 (file)
@@ -35,5 +35,5 @@ jobs:
         if: "github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/master'"
         uses: ad-m/github-push-action@master
         with:
-          github_token: ${{ secrets.USER_TOKEN }}
+          github_token: ${{ secrets.GITHUB_TOKEN }}
           branch: master