Skip to content

Commit

Permalink
build: harden CICD.yml permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Alex <[email protected]>
  • Loading branch information
sashashura committed Sep 25, 2022
1 parent b182f81 commit 1138c90
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ env:

on: [push, pull_request]

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
cargo-deny:
name: Style/cargo-deny
Expand Down Expand Up @@ -532,6 +535,9 @@ jobs:
path: size-result.json

build:
permissions:
contents: write # to create GitHub release (softprops/action-gh-release)

name: Build
needs: [ min_version, deps ]
runs-on: ${{ matrix.job.os }}
Expand Down

0 comments on commit 1138c90

Please sign in to comment.