|
25 | 25 | runs-on: ubuntu-latest |
26 | 26 | steps: |
27 | 27 | # Common steps: |
| 28 | + - name: Authenticate as GitHub App |
| 29 | + uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4 |
| 30 | + id: get-app-token |
| 31 | + with: |
| 32 | + owner: "airbytehq" |
| 33 | + repositories: "PyAirbyte,sonar" |
| 34 | + app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }} |
| 35 | + private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }} |
28 | 36 | - name: Checkout code |
29 | 37 | uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 38 | + with: |
| 39 | + token: ${{ steps.get-app-token.outputs.token }} |
| 40 | + submodules: recursive |
30 | 41 | - name: Set up Poetry |
31 | 42 | uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9 |
32 | 43 | with: |
@@ -90,8 +101,19 @@ jobs: |
90 | 101 | runs-on: ubuntu-latest |
91 | 102 | steps: |
92 | 103 | # Common steps: |
| 104 | + - name: Authenticate as GitHub App |
| 105 | + uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4 |
| 106 | + id: get-app-token |
| 107 | + with: |
| 108 | + owner: "airbytehq" |
| 109 | + repositories: "PyAirbyte,sonar" |
| 110 | + app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }} |
| 111 | + private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }} |
93 | 112 | - name: Checkout code |
94 | 113 | uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 114 | + with: |
| 115 | + token: ${{ steps.get-app-token.outputs.token }} |
| 116 | + submodules: recursive |
95 | 117 | - name: Set up Poetry |
96 | 118 | uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9 |
97 | 119 | with: |
@@ -168,8 +190,19 @@ jobs: |
168 | 190 | PYTHONIOENCODING: utf-8 |
169 | 191 | steps: |
170 | 192 | # Common steps: |
| 193 | + - name: Authenticate as GitHub App |
| 194 | + uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4 |
| 195 | + id: get-app-token |
| 196 | + with: |
| 197 | + owner: "airbytehq" |
| 198 | + repositories: "PyAirbyte,sonar" |
| 199 | + app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }} |
| 200 | + private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }} |
171 | 201 | - name: Checkout code |
172 | 202 | uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 203 | + with: |
| 204 | + token: ${{ steps.get-app-token.outputs.token }} |
| 205 | + submodules: recursive |
173 | 206 | - name: Set up Python |
174 | 207 | uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 |
175 | 208 | with: |
@@ -241,8 +274,19 @@ jobs: |
241 | 274 | name: Dependency Analysis with Deptry |
242 | 275 | runs-on: ubuntu-latest |
243 | 276 | steps: |
| 277 | + - name: Authenticate as GitHub App |
| 278 | + uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4 |
| 279 | + id: get-app-token |
| 280 | + with: |
| 281 | + owner: "airbytehq" |
| 282 | + repositories: "PyAirbyte,sonar" |
| 283 | + app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }} |
| 284 | + private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }} |
244 | 285 | - name: Checkout code |
245 | 286 | uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 287 | + with: |
| 288 | + token: ${{ steps.get-app-token.outputs.token }} |
| 289 | + submodules: recursive |
246 | 290 | - name: Set up Python |
247 | 291 | uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 |
248 | 292 | with: |
|
0 commit comments