Skip to content

Commit

Permalink
Use actions/create-github-app-token
Browse files Browse the repository at this point in the history
Migrate to the actions/create-github-app-token action.
Relates to #784.
  • Loading branch information
martincostello committed Mar 22, 2024
1 parent 6083b23 commit 94035f3
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/update-dotnet-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,15 @@ jobs:
- name: Generate GitHub application token
id: generate-application-token
if: steps.validate-secrets.outputs.result == 'true'
uses: peter-murray/workflow-application-token-action@dc0413987a085fa17d19df9e47d4677cf81ffef3 # v3.0.0
uses: actions/create-github-app-token@f2acddfb5195534d487896a656232b016a682f3c # v1.9.0
with:
application_id: ${{ secrets.application-id }}
application_private_key: ${{ secrets.application-private-key }}
organization: ${{ inputs.organization }}
permissions: "contents:write, pull_requests:write"
app-id: ${{ secrets.application-id }}
owner: ${{ inputs.organization }}
private-key: ${{ secrets.application-private-key }}
# TODO Depends on https://github.com/actions/create-github-app-token/pull/111
permissions: |
contents:write
pull_requests:write
- name: Assign GitHub token
id: assign-token
Expand Down

0 comments on commit 94035f3

Please sign in to comment.