Skip to content

Commit a4ad6f6

Browse files
committed
ci: use the read-only GH app token for pulling mfd
We can't use `${{ github.token }}` for calling `gh` on another repo than this repo (cloudbeds/cloudbeds-api-python). We're using the default app that allows us to read from all repos.
1 parent 819797b commit a4ad6f6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ jobs:
1919
- name: Checkout code
2020
uses: actions/checkout@v4
2121

22+
- name: Get GH app token
23+
id: gh-app-token
24+
uses: cloudbeds/composite-actions/gh-app-token@v2
25+
2226
- name: Get API docs
2327
env:
24-
GITHUB_TOKEN: ${{ github.token }}
28+
GITHUB_TOKEN: ${{ steps.gh-app-token.outputs.github-token }}
2529
run: |
2630
MFD_TAG=$(gh api /repos/cloudbeds/mfd/releases/latest | jq -r '.tag_name')
2731
echo "Latest MFD tag: $MFD_TAG"

0 commit comments

Comments
 (0)