Skip to content

Commit

Permalink
Merge pull request #1053 from turrisxyz/Pinned-Dependencies-GitHub
Browse files Browse the repository at this point in the history
chore: Set permissions for GitHub actions
  • Loading branch information
krichardsson authored Jun 8, 2022
2 parents bdf0386 + a7d0188 commit 0e70f1e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
pull_request:
branches: [ master ]

permissions:
contents: read

jobs:
cf2:
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ name: Release
on:
workflow_dispatch:

permissions:
contents: read

jobs:
release:
permissions:
contents: write # for actions/create-release to create a release
name: Create Release on Github
runs-on: ubuntu-latest
steps:
Expand All @@ -29,6 +34,8 @@ jobs:
path: release_url.txt

upload:
permissions:
contents: write # for actions/upload-release-asset to upload release asset
name: Upload Binaries to release
needs: [release]
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0e70f1e

Please sign in to comment.