Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

@ ci(nix): least-privilege the two nix workflows, symmetric path filters

Etienne Lescot7f63dba18652
diff --git a/.github/workflows/bump-nix-package.yml b/.github/workflows/bump-nix-package.yml
index daa45bff1..661b881d6 100644
--- a/.github/workflows/bump-nix-package.yml
+++ b/.github/workflows/bump-nix-package.yml
@@ -10,9 +10,10 @@ on:
required: true
type: string
+# GITHUB_TOKEN only pushes the branch here — the PR itself is opened with the
+# PAT below, so no `pull-requests: write` is needed (and it never worked).
permissions:
contents: write
- pull-requests: write
jobs:
bump:
diff --git a/.github/workflows/nix-check.yml b/.github/workflows/nix-check.yml
index 3e5020894..afce7665d 100644
--- a/.github/workflows/nix-check.yml
+++ b/.github/workflows/nix-check.yml
@@ -29,6 +29,13 @@ on:
paths:
- package-lock.json
- nix/**
+ - .github/workflows/nix-check.yml
+
+# Read-only, and stated rather than inherited: the repo default happens to be
+# `read` today, which is exactly the kind of repo-level setting that silently
+# changed this workflow's sibling out from under it.
+permissions:
+ contents: read
jobs:
npm-deps-hash: