Skip to content

Commit 7cd8622

Browse files
fix(github-workflows): use official GitHub action for token generation (#1952)
Signed-off-by: Bryce Thuilot <[email protected]> Co-authored-by: jack-edmonds-dd <[email protected]>
1 parent b6ce7cf commit 7cd8622

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

.github/workflows/approved_status.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Send PR Approval Status
22

3-
permissions:
3+
permissions:
44
contents: read
55
pull-requests: write
66

@@ -25,10 +25,10 @@ jobs:
2525
steps:
2626
- name: Get GitHub App token
2727
id: get_token
28-
uses: tibdex/github-app-token@v1.3.0
28+
uses: actions/create-github-app-token@v1
2929
with:
30-
app_id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
31-
private_key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
30+
app-id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
31+
private-key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
3232
repository: DataDog/datadog-api-spec
3333
- name: Post PR review status check
3434
uses: DataDog/github-actions/post-review-status@v2

.github/workflows/prepare_release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
steps:
2222
- name: Get GitHub App token
2323
id: get_token
24-
uses: tibdex/github-app-token@v1
24+
uses: actions/create-github-app-token@v1
2525
with:
26-
app_id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
27-
private_key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
26+
app-id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
27+
private-key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
2828
- uses: actions/checkout@v3
2929
with:
3030
fetch-depth: 0

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
steps:
2323
- name: Get GitHub App token
2424
id: get_token
25-
uses: tibdex/github-app-token@v1
25+
uses: actions/create-github-app-token@v1
2626
with:
27-
app_id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
28-
private_key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
27+
app-id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
28+
private-key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
2929

3030
- name: Create release
3131
uses: actions/github-script@v6

.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Run Tests
22

3-
permissions:
3+
permissions:
44
contents: read
55

66
env:
@@ -31,10 +31,10 @@ jobs:
3131
- name: Get GitHub App token
3232
id: get_token
3333
if: github.event.pull_request.head.repo.full_name == github.repository
34-
uses: tibdex/github-app-token@v1
34+
uses: actions/create-github-app-token@v1
3535
with:
36-
app_id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
37-
private_key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
36+
app-id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
37+
private-key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
3838
- uses: actions/checkout@v3
3939
if: github.event.pull_request.head.repo.full_name == github.repository
4040
with:
@@ -125,10 +125,10 @@ jobs:
125125
- name: Get GitHub App token
126126
if: github.event_name == 'pull_request'
127127
id: get_token
128-
uses: tibdex/github-app-token@v1
128+
uses: actions/create-github-app-token@v1
129129
with:
130-
app_id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
131-
private_key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
130+
app-id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
131+
private-key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
132132
repository: DataDog/datadog-api-spec
133133
- name: Post status check
134134
uses: DataDog/github-actions/post-status-check@v2

.github/workflows/test_integration.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Run Integration Tests
22

3-
permissions:
3+
permissions:
44
contents: read
55

66
on:
@@ -44,10 +44,10 @@ jobs:
4444
- name: Get GitHub App token
4545
if: github.event_name == 'pull_request'
4646
id: get_token
47-
uses: tibdex/github-app-token@v1
47+
uses: actions/create-github-app-token@v1
4848
with:
49-
app_id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
50-
private_key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
49+
app-id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
50+
private-key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
5151
repository: DataDog/datadog-api-spec
5252
- name: Checkout code
5353
uses: actions/checkout@v3

0 commit comments

Comments
 (0)