Skip to content

Commit

Permalink
add permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
morri-son committed Feb 19, 2025
1 parent d5b8dd3 commit 8ab2a6a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/dispatch-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@ on:
push:
branches:
- main
permissions:
contents: read

jobs:
dispatch-event:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v2
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
with:
app_id: ${{ secrets.OCMBOT_APP_ID }}
private_key: ${{ secrets.OCMBOT_PRIV_KEY }}
- name: Dispatch e2e test trigger
uses: peter-evans/repository-dispatch@v3
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0
with:
token: ${{ steps.generate_token.outputs.token }}
repository: open-component-model/MPAS
Expand Down

0 comments on commit 8ab2a6a

Please sign in to comment.