Skip to content

Commit 42c4a9c

Browse files
Temp disable the attempt to use a GitHub app
1 parent 7cf38b9 commit 42c4a9c

1 file changed

Lines changed: 37 additions & 37 deletions

File tree

.github/workflows/trigger-private-release.yml

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -9,51 +9,51 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- name: Get app token
13-
id: app-token
14-
uses: actions/create-github-app-token@v2
15-
with:
16-
app-id: ${{ secrets.IGNITEUI_GITHUB_APP_ID }}
17-
private-key: ${{ secrets.IGNITEUI_GITHUB_APP_PRIVATE_KEY }}
18-
owner: IgniteUI
19-
repositories: |
20-
igniteui-angular-test
21-
igniteui-actions
12+
# - name: Get app token
13+
# id: app-token
14+
# uses: actions/create-github-app-token@v2
15+
# with:
16+
# app-id: ${{ secrets.IGNITEUI_GITHUB_APP_ID }}
17+
# private-key: ${{ secrets.IGNITEUI_GITHUB_APP_PRIVATE_KEY }}
18+
# owner: IgniteUI
19+
# repositories: |
20+
# igniteui-angular-test
21+
# igniteui-actions
2222

23-
- name: Inspect the token accepted permissions header on a repo-scoped request
24-
run: |
25-
curl -i \
26-
-H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \
27-
-H "Accept: application/vnd.github+json" \
28-
https://api.github.com/repos/IgniteUI/igniteui-actions
23+
# - name: Inspect the token accepted permissions header on a repo-scoped request
24+
# run: |
25+
# curl -i \
26+
# -H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \
27+
# -H "Accept: application/vnd.github+json" \
28+
# https://api.github.com/repos/IgniteUI/igniteui-actions
2929

30-
- name: Debug - list repos visible to installation token
31-
run: |
32-
curl -sS \
33-
-H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \
34-
-H "Accept: application/vnd.github+json" \
35-
https://api.github.com/installation/repositories | jq -r '.repositories[].full_name'
30+
# - name: Debug - list repos visible to installation token
31+
# run: |
32+
# curl -sS \
33+
# -H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \
34+
# -H "Accept: application/vnd.github+json" \
35+
# https://api.github.com/installation/repositories | jq -r '.repositories[].full_name'
3636

37-
- name: Token type sanity check
38-
run: |
39-
curl -i -H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \
40-
-H "Accept: application/vnd.github+json" \
41-
https://api.github.com/installation/repositories
37+
# - name: Token type sanity check
38+
# run: |
39+
# curl -i -H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \
40+
# -H "Accept: application/vnd.github+json" \
41+
# https://api.github.com/installation/repositories
4242

43-
- name: Direct repository_dispatch via curl (diagnostic)
44-
run: |
45-
set -euxo pipefail
46-
curl -i -X POST \
47-
-H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \
48-
-H "Accept: application/vnd.github+json" \
49-
https://api.github.com/repos/IgniteUI/igniteui-actions/dispatches \
50-
-d '{"event_type":"igniteui-angular-public-release-created","client_payload":{"release_tag":"'"${{ github.event.release.tag_name }}"'","public_repo":"'"${{ github.repository }}"'"}}'
43+
# - name: Direct repository_dispatch via curl (diagnostic)
44+
# run: |
45+
# set -euxo pipefail
46+
# curl -i -X POST \
47+
# -H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \
48+
# -H "Accept: application/vnd.github+json" \
49+
# https://api.github.com/repos/IgniteUI/igniteui-actions/dispatches \
50+
# -d '{"event_type":"igniteui-angular-public-release-created","client_payload":{"release_tag":"'"${{ github.event.release.tag_name }}"'","public_repo":"'"${{ github.repository }}"'"}}'
5151

5252
- name: Send repository dispatch to private repo
5353
uses: peter-evans/repository-dispatch@v3
5454
with:
55-
#token: ${{ secrets.CLASSIC_PAT_GITHUB }}
56-
token: ${{ steps.app-token.outputs.token }}
55+
token: ${{ secrets.CLASSIC_PAT_GITHUB }}
56+
#token: ${{ steps.app-token.outputs.token }}
5757
repository: IgniteUI/igniteui-actions
5858
event-type: igniteui-angular-public-release-created
5959
client-payload: |

0 commit comments

Comments
 (0)