mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
workflows: Fix security issues
read-all permissions gives access to e.g. security-events, which these
don't need, and can easily lead to leaks
Co-Authored-By: 13x1 <tori@disroot.org>
Co-Authored-By: basti564 <e3e@disroot.org>
(cherry picked from commit 6b8ce4aedf
)
This commit is contained in:
parent
5691625565
commit
ccc38ebba1
3
.github/workflows/codeowners.yml
vendored
3
.github/workflows/codeowners.yml
vendored
@ -24,6 +24,9 @@ on:
|
||||
pull_request_target:
|
||||
types: [opened, ready_for_review, synchronize, reopened, edited]
|
||||
|
||||
# We don't need any default GitHub token
|
||||
permissions: {}
|
||||
|
||||
env:
|
||||
OWNERS_FILE: ci/OWNERS
|
||||
# Don't do anything on draft PRs
|
||||
|
4
.github/workflows/editorconfig.yml
vendored
4
.github/workflows/editorconfig.yml
vendored
@ -1,6 +1,8 @@
|
||||
name: "Checking EditorConfig"
|
||||
|
||||
permissions: read-all
|
||||
permissions:
|
||||
pull-requests: read
|
||||
contents: read
|
||||
|
||||
on:
|
||||
# avoids approving first time contributors
|
||||
|
3
.github/workflows/manual-nixos.yml
vendored
3
.github/workflows/manual-nixos.yml
vendored
@ -1,6 +1,7 @@
|
||||
name: "Build NixOS manual"
|
||||
|
||||
permissions: read-all
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
|
3
.github/workflows/manual-nixpkgs.yml
vendored
3
.github/workflows/manual-nixpkgs.yml
vendored
@ -1,6 +1,7 @@
|
||||
name: "Build Nixpkgs manual"
|
||||
|
||||
permissions: read-all
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
|
4
.github/workflows/nix-parse.yml
vendored
4
.github/workflows/nix-parse.yml
vendored
@ -1,6 +1,8 @@
|
||||
name: "Check whether nix files are parseable"
|
||||
|
||||
permissions: read-all
|
||||
permissions:
|
||||
pull-requests: read
|
||||
contents: read
|
||||
|
||||
on:
|
||||
# avoids approving first time contributors
|
||||
|
Loading…
Reference in New Issue
Block a user