Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: DeterminateSystems/nix-installer-action@1d87d45818068401a10cf16bdc5f00b24994a83f
with:
determinate: false
- uses: cachix/install-nix-action@bb0495a1086c46893eee56f32fd192dfe4a15bb9 # v32.0.0
# The full history holds the merge base with the base branch.
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand Down Expand Up @@ -59,9 +57,7 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: DeterminateSystems/nix-installer-action@1d87d45818068401a10cf16bdc5f00b24994a83f
with:
determinate: false
- uses: cachix/install-nix-action@bb0495a1086c46893eee56f32fd192dfe4a15bb9 # v32.0.0
- name: Install the checkout with the flake's source build
run: nix build --out-link "$RUNNER_TEMP/quest-lifecycle-install" .#quest
- name: Verify the installed CLI lifecycle
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/pullfrog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,16 @@ jobs:
# Edited: what the review needs to run the repository's checks and
# tests. The environment admits only main, so the dev shell comes from
# the default branch, not a pull request's head.
- uses: DeterminateSystems/nix-installer-action@1d87d45818068401a10cf16bdc5f00b24994a83f # main
- uses: cachix/install-nix-action@bb0495a1086c46893eee56f32fd192dfe4a15bb9 # v32.0.0
with:
determinate: false
# The agent's shell can reach the daemon and read /etc/nix and
# /nix/receipt.json: keep the job's token out of both, and keep the
# runner user untrusted, since a trusted user's settings, such as a
# post-build-hook, run as root.
github-token: ""
trust-runner-user: false
# The agent's shell can reach the daemon and read /etc/nix: keep
# the runner user untrusted, since a trusted user's settings, such
# as a post-build-hook, run as root.
set_as_trusted_user: false
# The action writes the job's token into nix.conf and has no input to
# skip it, so drop it before the agent can read /etc/nix.
- name: Keep the job token out of Nix's config
run: sudo sed -i '/^access-tokens/d' /etc/nix/nix.conf
- name: Put the dev shell's tools on PATH
# bash, not the default shell, for pipefail: a failing print-dev-env
# must fail the step, not write an empty PATH.
Expand All @@ -53,7 +54,7 @@ jobs:
nix print-dev-env --json |
jq -r '.variables.PATH.value' |
tr ':' '\n' | grep '^/nix/store/' | paste -sd: >>"$GITHUB_PATH"
if sudo grep -rqF "$TOKEN" /etc/nix /nix/receipt.json; then
if sudo grep -rqF "$TOKEN" /etc/nix; then
echo "the job token reached Nix's config" >&2
exit 1
fi
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: DeterminateSystems/nix-installer-action@1d87d45818068401a10cf16bdc5f00b24994a83f
with:
determinate: false
- uses: cachix/install-nix-action@bb0495a1086c46893eee56f32fd192dfe4a15bb9 # v32.0.0
- name: Install dependencies
run: nix develop --command just install
# The dev shell's Bun is patched for Nix, so compile with the official
Expand Down