Skip to content

Commit 48c4808

Browse files
committed
Add authentication steps for GitHub App in get-project-column-ids.yml
1 parent 56ed5b0 commit 48c4808

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/get-project-column-ids.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,23 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313

14+
- name: Checkout repository
15+
uses: actions/checkout@v2
16+
17+
- name: Authenticate with GitHub App
18+
id: auth
19+
uses: tibdex/github-app-token@v1
20+
with:
21+
app_id: ${{ secrets.GITHUB_APP_ID }}
22+
private_key: ${{ secrets.PRIVATE_KEY }}
23+
installation_id: ${{ secrets.INSTALLATION_ID }}
24+
1425
# ✅ Step 1: Fetch Project IDs
1526
- name: Get Project IDs
1627
id: get_project_ids
1728
uses: actions/github-script@v7
1829
with:
30+
github-token: ${{ steps.auth.outputs.token }}
1931
script: |
2032
const org = context.repo.owner;
2133
const projectNames = ["Refinement Board", "Project Backlog"]; // Adjust project names as needed
@@ -63,6 +75,7 @@ jobs:
6375
env:
6476
PROJECT_IDS: ${{ steps.get_project_ids.outputs.project_ids }}
6577
with:
78+
github-token: ${{ steps.auth.outputs.token }}
6679
script: |
6780
const projectIdsRaw = process.env.PROJECT_IDS;
6881
let projectIds = {};

0 commit comments

Comments
 (0)