Skip to content
Open
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
5 changes: 5 additions & 0 deletions linting/rust/deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ allow = [
"Zlib",
]
unused-allowed-license = "allow"
unused-license-exception = "allow"
confidence-threshold = 0.95

[licenses.private]
Expand Down Expand Up @@ -62,3 +63,7 @@ allow = ["AGPL-3.0-only", "AGPL-3.0-or-later"]
[[licenses.exceptions]]
name = "zitadel-token"
allow = ["AGPL-3.0-only", "AGPL-3.0-or-later"]

[[licenses.exceptions]]
name = "famedly-operator"
allow = ["AGPL-3.0-only", "AGPL-3.0-or-later"]
4 changes: 4 additions & 0 deletions nix/modules/workflows/lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ rec {

# Configure git HTTPS credentials so the Nix daemon can fetch private flake inputs.
# Uses a PAT via git credential helper — works for any user (root, nixbld, runner).
# Also configures Nix access-tokens so the daemon can fetch private GitHub
# flake inputs (which are downloaded as tarballs via the API, not via git).
mkNixGitAuthStep =
{ token }:
{
Expand All @@ -105,6 +107,8 @@ rec {
set -euo pipefail
if [[ -n "''${GH_TOKEN:-}" ]]; then
sudo git config --system url."https://x-access-token:''${GH_TOKEN}@github.com/".insteadOf "https://github.com/"
echo "access-tokens = github.com=''${GH_TOKEN}" | sudo tee -a /etc/nix/nix.conf > /dev/null
sudo systemctl restart nix-daemon.service 2>/dev/null || true
fi
'';
};
Expand Down
Loading