Unverified Commit f47fe6a7 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #330086 from Sigmanificient/legitify

legitify: 0.1.5 -> 1.0.11
parents 68e8a1b9 171f5bd8
Loading
Loading
Loading
Loading
+11 −7
Original line number Diff line number Diff line
@@ -5,29 +5,33 @@

buildGoModule rec {
  pname = "legitify";
  version = "0.1.5";
  version = "1.0.11";

  src = fetchFromGitHub {
    owner = "Legit-Labs";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-Sr6P5S5+DqbP0ihCj97l84739/NRAlYJLnXp4B5gHNE=";
    repo = "legitify";
    rev = "refs/tags/v${version}";
    hash = "sha256-ijW0vvamuqcN6coV5pAtmjAUjzNXxiqr2S9EwrNlrJc=";
  };

  vendorHash = "sha256-EJMXzWrOXFl7JFYBp/XAcHLcNyWCKbOBAyo/Yf2mh5s=";
  vendorHash = "sha256-QwSh7+LuwdbBtrIGk3ZK6cMW9h7wzNArPT/lVZgUGBU=";

  ldflags = [
    "-w"
    "-s"
    "-X github.com/Legit-Labs/legitify/internal/version.Version=${version}"
    "-X=github.com/Legit-Labs/legitify/internal/version.Version=${version}"
  ];

  preCheck = ''
    rm e2e/e2e_test.go # tests requires network
  '';

  meta = with lib; {
    description = "Tool to detect and remediate misconfigurations and security risks of GitHub assets";
    mainProgram = "legitify";
    homepage = "https://github.com/Legit-Labs/legitify";
    changelog = "https://github.com/Legit-Labs/legitify/releases/tag/v${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ fab ];
    mainProgram = "legitify";
  };
}