mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
build: harden CICD.yml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>
This commit is contained in:
@@ -17,6 +17,9 @@ env:
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
|
||||
jobs:
|
||||
cargo-deny:
|
||||
name: Style/cargo-deny
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user