about summary refs log tree commit diff
path: root/pkgs/by-name/oc/octoscan/package.nix
blob: c3a6e4d50b96f0db4628debb2a434f41ef578959 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  lib,
  buildGoModule,
  fetchFromGitHub,
}:

buildGoModule rec {
  pname = "octoscan";
  version = "0-unstable-2024-08-25";

  src = fetchFromGitHub {
    owner = "synacktiv";
    repo = "octoscan";
    # https://github.com/synacktiv/octoscan/issues/7
    rev = "69f0761fe4d31f7fe4050fde5fd807364155fde4";
    hash = "sha256-2aCjqjBDXqGbu94o22JRpJ5nUv8U46JGRcrBJCINflQ=";
  };

  vendorHash = "sha256-9IT8qTFzn8otWGTBP7ODcT8iBckIJ/3+jkbF1dq6aDw=";

  ldflags = [
    "-s"
    "-w"
  ];

  meta = {
    description = "Static vulnerability scanner for GitHub action workflows";
    homepage = "https://github.com/synacktiv/octoscan";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "octoscan";
  };
}