Skip to content

A fast file manager for Windows and macOS that never freezes: tabs, dual panes, archives as folders, Quick Look-style previews. A File Explorer and Finder alternative written in Rust.

The release and signing jobs run in the release environment; CODEOWNERS for .github

gelenmedyaec2de459944e
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
new file mode 100644
index 00000000..0e14004d
--- /dev/null
+++ b/.github/CODEOWNERS
@@ -0,0 +1,2 @@
+# Changes to the workflows and to this file are looked at by the owner.
+/.github/ @gelenmedya
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index ca68c1c3..76a1f907 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -72,6 +72,9 @@ jobs:
release:
needs: build
runs-on: windows-latest
+ # The "release" environment may only be used from a v* tag (and from main, for the signing test), and only the repository's
+ # owner can create a v* tag (the "Release tags" ruleset). Secrets kept in the environment are out of reach of any other run.
+ environment: release
env:
# Code signing through SignPath Foundation (see .signpath/ and the README's "Code signing policy"). It runs when the secret
# SIGNPATH_API_TOKEN and the repository variable SIGNPATH_POLICY (the signing policy: release-signing) are both set; without
@@ -232,6 +235,7 @@ jobs:
needs: release
if: ${{ !contains(github.ref_name, '-') }}
runs-on: ubuntu-latest
+ environment: release
env:
WINGET_TOKEN: ${{ secrets.WINGET_TOKEN }}
steps:
diff --git a/.github/workflows/sign-test.yml b/.github/workflows/sign-test.yml
index 16bfb0a0..92f04928 100644
--- a/.github/workflows/sign-test.yml
+++ b/.github/workflows/sign-test.yml
@@ -19,6 +19,8 @@ permissions:
jobs:
sign:
runs-on: windows-latest
+ # (the signing token may live in this environment: see release.yml)
+ environment: release
env:
SIGNPATH_ORGANIZATION_ID: 20e56ca1-e084-442d-95a5-748dbdfdc22c
SIGNPATH_PROJECT: rustyfiles