Fixes #1957.
This PR ensures all workflows run with minimal permissions, instead of
with `write-all` permissions. This will protect the project from
supply-chain attacks.
The change to codeql.yml is for consistency and future-proofing. Should
another job eventually be added to the workflow, it will run with just
`contents: read`.
Signed-off-by: Pedro Kaj Kjellerup Nacht <pnacht@google.com>
on: [push, pull_request]
+permissions:
+ contents: read
+
jobs:
MacOS:
runs-on: macos-13
name: CIFuzz
on: [pull_request]
+
+permissions:
+ contents: read
+
jobs:
Fuzzing:
runs-on: ubuntu-latest
name: "CodeQL"
+permissions:
+ contents: read
+
on:
push:
branches: [ "master", "3.5" ]
runs-on: ubuntu-latest
permissions:
actions: read
- contents: read
security-events: write
strategy: