Browse Source

use actions/create-github-app-token action to get app installation tokens and fix the parameters (#5264)

Signed-off-by: mouhsen.ibrahim <mouhsen.ibrahim@gmail.com>
Co-authored-by: Gergely Brautigam <skarlso777@gmail.com>
Mouhsen Ibrahim 7 months ago
parent
commit
941564a38c

+ 3 - 3
.github/workflows/e2e.yml

@@ -102,10 +102,10 @@ jobs:
       uses: ./.github/actions/e2e
       uses: ./.github/actions/e2e
     - id: create_token
     - id: create_token
       if: always()
       if: always()
-      uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
+      uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1
       with:
       with:
-        app_id: ${{ secrets.APP_ID }}
-        private_key: ${{ secrets.PRIVATE_KEY }}
+        app-id: ${{ secrets.APP_ID }}
+        private-key: ${{ secrets.PRIVATE_KEY }}
     - name: Update on Succeess
     - name: Update on Succeess
       if: always() && steps.e2e.conclusion == 'success'
       if: always() && steps.e2e.conclusion == 'success'
       uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
       uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0

+ 3 - 3
.github/workflows/ok-to-test-managed.yml

@@ -25,10 +25,10 @@ jobs:
         egress-policy: audit
         egress-policy: audit
     - name: Generate token
     - name: Generate token
       id: generate_token
       id: generate_token
-      uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
+      uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1
       with:
       with:
-        app_id: ${{ secrets.APP_ID }}
-        private_key: ${{ secrets.PRIVATE_KEY }}
+        app-id: ${{ secrets.APP_ID }}
+        private-key: ${{ secrets.PRIVATE_KEY }}
 
 
     - name: Slash Command Dispatch
     - name: Slash Command Dispatch
       uses: peter-evans/slash-command-dispatch@13bc09769d122a64f75aa5037256f6f2d78be8c4 # v4.0.0
       uses: peter-evans/slash-command-dispatch@13bc09769d122a64f75aa5037256f6f2d78be8c4 # v4.0.0

+ 3 - 3
.github/workflows/ok-to-test.yml

@@ -25,10 +25,10 @@ jobs:
     # See app.yml for an example app manifest
     # See app.yml for an example app manifest
     - name: Generate token
     - name: Generate token
       id: generate_token
       id: generate_token
-      uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
+      uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1
       with:
       with:
-        app_id: ${{ secrets.APP_ID }}
-        private_key: ${{ secrets.PRIVATE_KEY }}
+        app-id: ${{ secrets.APP_ID }}
+        private-key: ${{ secrets.PRIVATE_KEY }}
 
 
     - name: Slash Command Dispatch
     - name: Slash Command Dispatch
       uses: peter-evans/slash-command-dispatch@13bc09769d122a64f75aa5037256f6f2d78be8c4 # v4.0.0
       uses: peter-evans/slash-command-dispatch@13bc09769d122a64f75aa5037256f6f2d78be8c4 # v4.0.0

+ 3 - 3
.github/workflows/update-deps.yml

@@ -52,10 +52,10 @@ jobs:
       # from running: we can create a PR but the tests won't run :/
       # from running: we can create a PR but the tests won't run :/
     - name: Generate token
     - name: Generate token
       id: generate_token
       id: generate_token
-      uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
+      uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1
       with:
       with:
-        app_id: ${{ secrets.APP_ID }}
-        private_key: ${{ secrets.PRIVATE_KEY }}
+        app-id: ${{ secrets.APP_ID }}
+        private-key: ${{ secrets.PRIVATE_KEY }}
     - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
     - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
       with:
       with:
         token: ${{ steps.generate_token.outputs.token }}
         token: ${{ steps.generate_token.outputs.token }}