Skip to content

Commit

Permalink
Merge pull request #739 from atsign-foundation/cpswan-token-permissions
Browse files Browse the repository at this point in the history
ci: Restrict token permissions in gitbook workflow
  • Loading branch information
gkc committed Jan 26, 2024
2 parents d85e7f2 + 85bd415 commit 49dd838
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/gitbook.yaml
Expand Up @@ -2,7 +2,10 @@ name: Gitbook Review
on:
push:
branches:
- gitbook
- gitbook

permissions:
contents: read

jobs:
create-pull-request:
Expand All @@ -16,7 +19,7 @@ jobs:

- name: Authenticate GitHub CLI
run: |
echo -e ${{ secrets.MY_GITHUB_TOKEN }} | gh auth login --with-token
echo -e ${{ secrets.MY_GITHUB_TOKEN }} | gh auth login --with-token
- name: Create Pull Request
run: |
Expand All @@ -27,4 +30,3 @@ jobs:
--title 'docs(automated): Update docs from Gitbook' \
--body 'Sync Gitbook docs branch to trunk' || \
echo "Already created?";

0 comments on commit 49dd838

Please sign in to comment.