Skip to content

Commit

Permalink
DIOS-3785 Update static-analysis.yaml to use dynamic token
Browse files Browse the repository at this point in the history
  • Loading branch information
rreynaud committed Jan 29, 2024
1 parent 5d822e6 commit c18542e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/static-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,24 @@ name: static-analysis

on:
push:
branches: [ master ]
branches: [ master, dev/rrd/DIOS-3785-static-analysis-dynamic-token ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.APP_CHECKOUT_ID }}
private-key: ${{ secrets.APP_CHECKOUT_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: "static-analysis"
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.PAT_STATIC_ANALYSIS }}
github-token: ${{ steps.app-token.outputs.token }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'medooze',
Expand Down

0 comments on commit c18542e

Please sign in to comment.