Skip to content

Commit

Permalink
ci: set minimal permisisons on github workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
  • Loading branch information
diogoteles08 committed May 17, 2023
1 parent 2e4c522 commit 09517e7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/analysis_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
- cron: "0 0 * * 0"
workflow_dispatch:

permissions:
contents: read

jobs:

# ---------------------------------------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/bazel_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ on:
paths-ignore:
- '**.md'

permissions:
contents: read

jobs:
build_and_test_ubuntu:
name: Linux Ubuntu 20.04 Bazel build <GCC 9.3.0>
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ on:
paths-ignore:
- '**.md'

permissions:
contents: read

jobs:
# Linux jobs run in Docker containers, so the latest OS version is OK. macOS
# and Windows jobs need to be locked to specific virtual environment
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cifuzz.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: CIFuzz
on: [pull_request]
permissions:
contents: read
jobs:
Fuzzing:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 09517e7

Please sign in to comment.