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

index e4d010d96454826abb37a8e9732825921e71c345..f7fc9451301a78676f753440fa6252b9e8485a46 100644 (file)
@@ -35,7 +35,7 @@ jobs:
     - name: SonarCloud Scan
       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 }}
   build-docker:
     runs-on: ubuntu-latest
index 32c812fff87e8f634def5461caedf66e8ce4c7c3..d0213942cda2795fb3e4e7b1ba703544011a3e85 100644 (file)
@@ -8,6 +8,6 @@ jobs:
     steps:
     - uses: actions/first-interaction@v1
       with:
-        repo-token: ${{ secrets.USER_TOKEN }}
+        repo-token: ${{ secrets.GITHUB_TOKEN }}
         issue-message: 'Welcome to your first issue in e-Mobility software'
         pr-message: 'Welcome to your first PR in e-Mobility software'