Skip to content

Commit 6d53414

Browse files
bjordiscollakukeerthi-go
authored andcommitted
ci: install GitHub CLI for distro validation
- Install GitHub CLI from Ubuntu repositories in every trusted job that invokes gh api. - Restore kernel context resolution, validation dispatch, failure reporting, callback validation, and Check Run updates. - Remove reliance on the ephemeral runner image providing the GitHub CLI. Signed-off-by: Bjordis Collaku <bcollaku@qti.qualcomm.com>
1 parent f31b4bf commit 6d53414

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/premerge-distro-validation.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ jobs:
5151
with:
5252
persist-credentials: false
5353

54+
- name: Install GitHub CLI
55+
run: |
56+
set -euo pipefail
57+
sudo apt-get update
58+
sudo apt-get install -y --no-install-recommends gh
59+
5460
- id: context
5561
name: Validate triggering workflow context
5662
env:
@@ -74,6 +80,12 @@ jobs:
7480
with:
7581
persist-credentials: false
7682

83+
- name: Install GitHub CLI
84+
run: |
85+
set -euo pipefail
86+
sudo apt-get update
87+
sudo apt-get install -y --no-install-recommends gh
88+
7789
- id: check
7890
name: Start distro validation Check Run
7991
env:
@@ -134,6 +146,12 @@ jobs:
134146
with:
135147
persist-credentials: false
136148

149+
- name: Install GitHub CLI
150+
run: |
151+
set -euo pipefail
152+
sudo apt-get update
153+
sudo apt-get install -y --no-install-recommends gh
154+
137155
- name: Publish failure status
138156
env:
139157
GH_TOKEN: ${{ github.token }}
@@ -168,6 +186,12 @@ jobs:
168186
with:
169187
persist-credentials: false
170188

189+
- name: Install GitHub CLI
190+
run: |
191+
set -euo pipefail
192+
sudo apt-get update
193+
sudo apt-get install -y --no-install-recommends gh
194+
171195
- id: callback
172196
name: Validate returned distro result
173197
env:
@@ -192,6 +216,12 @@ jobs:
192216
with:
193217
persist-credentials: false
194218

219+
- name: Install GitHub CLI
220+
run: |
221+
set -euo pipefail
222+
sudo apt-get update
223+
sudo apt-get install -y --no-install-recommends gh
224+
195225
- name: Publish final status and summary
196226
env:
197227
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)