Skip to content

Commit

Permalink
fix: specify github token
Browse files Browse the repository at this point in the history
  • Loading branch information
BD103 committed Aug 12, 2024
1 parent 3a322be commit bbd140a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/cargo-generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ on:
# Allow this workflow to be manually triggered.
workflow_dispatch:

# This workflows also has write-access for content and workflow, but it is through
# CARGO_GENERATE_PAT.
permissions:
# We need write permissions to create new issues.
issues: write

jobs:
update:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -67,6 +73,7 @@ jobs:
```
_This is an automated message created using `cargo-generate.yaml`._
GH_TOKEN: ${{ github.token }}
# The messages must be in quotes, since they contain spaces.
run: gh issue create --title "$TITLE" --body "$BODY"

Expand Down

0 comments on commit bbd140a

Please sign in to comment.