Skip to content

Commit

Permalink
Tweak gh actions permissions (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
eloots authored Mar 2, 2023
1 parent 50fb886 commit d4fe76b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:

pull_request:

permissions:
contents: write

jobs:
run-tests:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -156,7 +159,7 @@ jobs:
id: create_release
uses: actions/create-release@v1
env:
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
Expand All @@ -166,7 +169,7 @@ jobs:
- name: Upload assets to Github release
uses: actions/upload-release-asset@v1
env:
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./course-management-tools.zip
Expand Down

0 comments on commit d4fe76b

Please sign in to comment.