aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2022-09-30 10:46:11 +0200
committerKarel Zak <kzak@redhat.com>2022-09-30 10:46:11 +0200
commit238ea44157da69eba43d7bd5ded2f710a5089760 (patch)
tree29f91d8d5411ede1bcb68d0448468b26c7f09aa5
parente70e5258c05b856842ce5bd2ab2d6cb4d440162b (diff)
parentfe267f8ab0ec69d049d632444c8b6b6255342d1e (diff)
downloadutil-linux-238ea44157da69eba43d7bd5ded2f710a5089760.tar.gz
Merge branch 'patch-1' of https://github.com/sashashura/util-linux
* 'patch-1' of https://github.com/sashashura/util-linux: build: harden coverity.yml permissions build: harden cibuild.yml permissions build: harden cifuzz.yml permissions
-rw-r--r--.github/workflows/cibuild.yml7
-rw-r--r--.github/workflows/cifuzz.yml7
-rw-r--r--.github/workflows/coverity.yml3
3 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/cibuild.yml b/.github/workflows/cibuild.yml
index 811537cc88..dc10ad4c41 100644
--- a/.github/workflows/cibuild.yml
+++ b/.github/workflows/cibuild.yml
@@ -14,6 +14,9 @@ on:
- 'Documentation/**'
- 'lib*/docs/**'
+permissions:
+ contents: read # to fetch code (actions/checkout)
+
jobs:
build:
runs-on: ubuntu-latest
@@ -38,6 +41,10 @@ jobs:
- name: Make install
run: .github/workflows/cibuild.sh INSTALL
coveralls:
+ permissions:
+ contents: read # to fetch code (actions/checkout)
+ checks: write # to create new checks (coverallsapp/github-action)
+
runs-on: ubuntu-latest
if: github.repository == 'util-linux/util-linux'
env:
diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml
index 93ebc3ceaa..e4945c06a2 100644
--- a/.github/workflows/cifuzz.yml
+++ b/.github/workflows/cifuzz.yml
@@ -12,8 +12,15 @@ on:
- master
paths:
- '**'
+permissions:
+ contents: read # to clone the repo (google/oss-fuzz/infra/cifuzz/actions/run_fuzzers)
+
jobs:
Fuzzing:
+ permissions:
+ actions: read # to fetch the artifacts (google/oss-fuzz/infra/cifuzz/actions/run_fuzzers)
+ contents: read # to clone the repo (google/oss-fuzz/infra/cifuzz/actions/run_fuzzers)
+
runs-on: ubuntu-latest
if: github.repository == 'util-linux/util-linux'
strategy:
diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml
index d5cf381fc0..b86c00a5c1 100644
--- a/.github/workflows/coverity.yml
+++ b/.github/workflows/coverity.yml
@@ -6,6 +6,9 @@ on:
# send data to Coverity daily at midnight
- cron: '0 0 * * *'
+permissions:
+ contents: read # to fetch code (actions/checkout)
+
jobs:
build:
runs-on: ubuntu-latest