Skip to content

Commit b496f8f

Browse files
architectbotactions-userhervenicol
authored
Align files (#376)
Co-authored-by: github-actions <action@github.com> Co-authored-by: Hervé Nicol <hervenicol@users.noreply.github.com>
1 parent 5bd4ea7 commit b496f8f

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

.github/workflows/zz_generated.add-team-labels.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,18 @@ jobs:
88
build_user_list:
99
name: Get yaml config of GS users
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
1113
steps:
1214
- name: Get user-mapping
15+
env:
16+
GH_TOKEN: ${{ secrets.ISSUE_AUTOMATION }}
1317
run: |
1418
mkdir -p artifacts
15-
wget --header "Authorization: token ${{ secrets.ISSUE_AUTOMATION }}" \
16-
-O artifacts/users.yaml \
17-
https://raw.githubusercontent.com/giantswarm/github/main/tools/issue-automation/user-mapping.yaml
19+
gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" \
20+
/repos/giantswarm/github/contents/tools/issue-automation/user-mapping.yaml \
21+
| jq -r '.content' \
22+
| base64 -d > artifacts/users.yaml
1823
- name: Upload Artifact
1924
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
2025
with:

.github/workflows/zz_generated.add-to-project-board.yaml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,33 @@ jobs:
1010
build_user_list:
1111
name: Get yaml config of GS users
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
1315
steps:
1416
- name: Get user-mapping
17+
env:
18+
GH_TOKEN: ${{ secrets.ISSUE_AUTOMATION }}
1519
run: |
1620
mkdir -p artifacts
17-
wget --header "Authorization: token ${{ secrets.ISSUE_AUTOMATION }}" \
18-
-O artifacts/users.yaml \
19-
https://raw.githubusercontent.com/giantswarm/github/main/tools/issue-automation/user-mapping.yaml
21+
gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" \
22+
/repos/giantswarm/github/contents/tools/issue-automation/user-mapping.yaml \
23+
| jq -r '.content' \
24+
| base64 -d > artifacts/users.yaml
2025
- name: Upload Artifact
2126
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
2227
with:
2328
name: users
2429
path: artifacts/users.yaml
2530
retention-days: 1
2631
- name: Get label-mapping
32+
env:
33+
GH_TOKEN: ${{ secrets.ISSUE_AUTOMATION }}
2734
run: |
2835
mkdir -p artifacts
29-
wget --header "Authorization: token ${{ secrets.ISSUE_AUTOMATION }}" \
30-
-O artifacts/labels.yaml \
31-
https://raw.githubusercontent.com/giantswarm/github/main/tools/issue-automation/label-mapping.yaml
36+
gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" \
37+
/repos/giantswarm/github/contents/tools/issue-automation/label-mapping.yaml \
38+
| jq -r '.content' \
39+
| base64 -d > artifacts/labels.yaml
3240
- name: Upload Artifact
3341
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
3442
with:

0 commit comments

Comments
 (0)