Skip to content

Commit

Permalink
ci(content-sync): use github app for proper permissions scope (#3240)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
tay1orjones and kodiakhq[bot] authored Nov 4, 2022
1 parent 3beded9 commit a6b2ab0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/platform-content-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:
paths:
- '**.mdx'

permissions:
issues: write

jobs:
if_merged:
if: github.event.pull_request.merged == true
Expand All @@ -19,9 +16,15 @@ jobs:
with:
repository: carbon-design-system/carbon-platform
ref: main
- name: Generate token
uses: tibdex/github-app-token@v1
id: generate_token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Create issue on platform repo
run: |
gh issue create --title "[Content sync]: carbon-website PR ${{ github.event.number }}" --label "role: dev 🤖" --label "service: web-app 🌎" --body 'The following pull request on carbon-website was just merged. It contains .mdx content changes that may need synced to platform.
- https://www.github.com/carbon-design-system/carbon-website/pull/${{ github.event.number }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}

1 comment on commit a6b2ab0

@vercel
Copy link

@vercel vercel bot commented on a6b2ab0 Nov 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.