Skip to content

Commit

Permalink
feat: snyk
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanHope committed Dec 6, 2023
1 parent 3de8056 commit 9886b97
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ jobs:
- name: Lint
run: task lint
shell: nix develop --command bash -e {0}
- name: Vulns
run: snyk auth $SNYK_TOKEN && task vulns
shell: nix develop --command bash -e {0}
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
10 changes: 3 additions & 7 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,12 @@ tasks:
- find . -name "*.db" -type f -delete
- find . -name "*.db-shm" -type f -delete
- find . -name "*.db-wal" -type f -delete
vulns:
cmds:
- snyk test
release:
cmds:
- goreleaser release
release-snapshot:
cmds:
- goreleaser release --snapshot --clean
install-native-manifest:
cmds:
- mkdir -p ~/.mozilla/native-messaging-hosts/
- cp armaria.json ~/.mozilla/native-messaging-hosts/
copy-snap:
cmds:
- scp dist/armaria_0.0.6-next_linux_amd64.snap [email protected]:/home/jhope
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
zig.packages.${system}.master
goreleaser
syft
snyk
];
shellHook = ''
export PATH=$PWD/tools:$PATH
Expand Down

0 comments on commit 9886b97

Please sign in to comment.