Compare commits

...

5 commits

Author SHA1 Message Date
Jo
459a0427c3 👷 Remove trufflehog head declaration
Some checks failed
Trufflehog: check for exposed secrets / Run trufflehog (push) Has been cancelled
Nix: check for unused code / Run deadnix (push) Has been cancelled
Nix: validate flake / Validate x86_64-linux (push) Has been cancelled
2025-05-31 18:57:46 +02:00
Jo
faf643f506 👷 Fix version again 2025-05-31 18:56:12 +02:00
Jo
86a6674214 👷 More accurate trufflehog scan configuration 2025-05-31 18:55:12 +02:00
Jo
02bf31fa25 👷 Update CI actions to use Lix and fix trufflehog version 2025-05-31 18:47:04 +02:00
Jo
2743a9d143 👷 Add leakage check CI action 2025-05-31 18:41:38 +02:00
4 changed files with 50 additions and 41 deletions

View file

@ -1,34 +0,0 @@
name: "Nix: build and cache outputs"
on:
workflow_dispatch:
push:
paths:
- "**.nix"
- "**.lock"
- ".github/workflows/build.yml"
jobs:
build-flake:
name: Build (x86_64-linux)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
persist-credentials: false
- name: Install Lix
uses: ./.github/actions/install-lix
- name: Setup Attic cache
uses: ryanccn/attic-action@v0.3.2
with:
endpoint: https://cache.thevoid.cafe
cache: puzzlevision
token: ${{ secrets.ATTIC_TOKEN }}
- name: Build flake
run: nix build .#nixosConfigurations.puzzlevision.config.system.build.toplevel --accept-flake-config

38
.github/workflows/check-leaks.yml vendored Normal file
View file

@ -0,0 +1,38 @@
name: "Trufflehog: check for exposed secrets"
on:
pull_request:
push:
paths:
- "**.nix"
- ".github/workflows/check-leaks.yml"
permissions:
contents: read
id-token: write
issues: write
pull-requests: write
jobs:
deadnix:
name: Run trufflehog
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
fetch-depth: 0
- id: trufflehog
name: TruffleHog scan
uses: trufflesecurity/trufflehog@main
continue-on-error: true
with:
path: ./
base: "${{ github.event.repository.default_branch }}"
extra_args: --debug --only-verified
- name: Scan Results Status
if: steps.trufflehog.outcome == 'failure'
run: exit 1

View file

@ -12,9 +12,17 @@ jobs:
name: Run deadnix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
persist-credentials: false
- name: Install lix
uses: ./.github/actions/install-lix
- uses: cachix/cachix-action@v14
with:
name: deadnix
- uses: phucleeuwu/deadnix-action@v1

View file

@ -6,7 +6,7 @@ on:
paths:
- "**.nix"
- "**.lock"
- ".github/workflows/**.yml"
- ".github/workflows/validate.yml"
jobs:
check-flake:
@ -21,10 +21,7 @@ jobs:
persist-credentials: false
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
experimental-features = flakes nix-command recursive-nix pipe-operator
uses: ./.github/actions/install-lix
- name: Validate Flake
run: nix flake check