gitleaks.io (#4181)

* new file:   projects/gitleaks.io/package.yml

* test

* oh
This commit is contained in:
Andrew 2023-11-22 22:20:55 +02:00 committed by GitHub
parent 57461f2c7b
commit 9e1b6de7db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,34 @@
distributable:
url: https://github.com/zricethezav/gitleaks/archive/v{{version}}.tar.gz
strip-components: 1
versions:
github: zricethezav/gitleaks
build:
dependencies:
go.dev: '*'
script:
- go build $GO_ARGS -ldflags="$LDFLAGS"
env:
LDFLAGS: -X github.com/zricethezav/gitleaks/v{{version.major}}/cmd.Version={{version}}
GO_ARGS:
- -trimpath
- -o="{{prefix}}/bin/gitleaks"
linux:
LDFLAGS:
- -buildmode=pie
test:
dependencies:
git-scm.org: '*'
script:
- echo 'ghp_deadbeefdeadbeefdeadbeefdeadbeefdeadbeef' > README
# Author identity unknown
- run: |
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
if: linux
- git init
- git add README
- git commit -m 'Initial commit'
- gitleaks detect 2>output.log || true
- cat output.log | grep '1 commits scanned'
- gitleaks version | grep {{version}}