build(ci): allow CI to run on Combine PRs
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 30 Aug 2023 21:41:12 +0000 (23:41 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 30 Aug 2023 21:41:12 +0000 (23:41 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/ci.yml
.github/workflows/combine-prs.yml

index 55c631682101a46e435a2e2c4c36b95911e3129e..a6c9aba75e148b136c416ae31e8e3b02b60fdc00 100644 (file)
@@ -41,7 +41,7 @@ jobs:
         if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
         uses: sonarsource/sonarcloud-github-action@v2.0.0
         env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
   build-dashboard:
     runs-on: ${{ matrix.os }}
@@ -82,7 +82,7 @@ jobs:
         with:
           projectBaseDir: ui/web
         env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
   build-docker:
     runs-on: ubuntu-latest
index 4d7fb83cbac31275ffaccd7aca30ff09899e1b5f..2d1618c275294d6fccc4b401e0dc8941c213e198 100644 (file)
@@ -18,3 +18,5 @@ jobs:
       - name: combine-prs
         id: combine-prs
         uses: github/combine-prs@v3.1.2
+        with:
+          github_token: ${{ secrets.SECRET_TOKEN }}