mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
gitleaks.io (#4181)
* new file: projects/gitleaks.io/package.yml * test * oh
This commit is contained in:
parent
57461f2c7b
commit
9e1b6de7db
1 changed files with 34 additions and 0 deletions
34
projects/gitleaks.io/package.yml
Normal file
34
projects/gitleaks.io/package.yml
Normal 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}}
|
Loading…
Reference in a new issue