Skip to content

Commit bb42075

Browse files
jsoucheironclaude
andcommitted
Fix update-cloudformation-actions workflow IP allowlist issue
Use GitHub App token instead of GITHUB_TOKEN to work around Skyscanner's IP allowlist restrictions on public repos with GitHub-hosted runners. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b054da6 commit bb42075

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/update-cloudformation-actions.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,17 @@ jobs:
3636
id: date
3737
run: echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
3838

39+
- name: Generate GitHub App token
40+
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
41+
id: app-token
42+
with:
43+
app-id: ${{ vars.GH_APP_ID }}
44+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
45+
3946
- name: Create Pull Request
4047
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
4148
with:
42-
token: ${{ secrets.GITHUB_TOKEN }}
49+
token: ${{ steps.app-token.outputs.token }}
4350
commit-message: "Update CloudFormation actions"
4451
title: "Update CloudFormation actions (${{ steps.date.outputs.date }})"
4552
body: |

0 commit comments

Comments
 (0)