Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: set permissions to create PR #803

Merged
merged 1 commit into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/build-icon-from-figma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
default: '[]'
required: true

permissions:
contents: write
pull-requests: write

jobs:
build_icons:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -48,7 +52,6 @@ jobs:
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
commit-message: 'feat(spindle-icons): update icons'
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/build-icon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
required: true
default: '["ALL"]'

permissions:
contents: write
pull-requests: write

jobs:
build_icons:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -38,7 +42,6 @@ jobs:
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
commit-message: 'feat(spindle-icons): update icons'
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/build-tokens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: build design tokens via webhook
on:
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
build_tokens:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -33,7 +37,6 @@ jobs:
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
commit-message: 'feat(spindle-tokens): update design tokens'
Expand Down