Initial commit
This commit is contained in:
6
Dockerfile
Normal file
6
Dockerfile
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
FROM zricethezav/gitleaks:v8.18.1
|
||||||
|
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|
||||||
18
README.md
Normal file
18
README.md
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Gitleaks docker action
|
||||||
|
|
||||||
|
This action checks source code for security issues in pull request.
|
||||||
|
|
||||||
|
**IMPORTANT:** this action works with pull requests only.
|
||||||
|
|
||||||
|
## Inputs
|
||||||
|
|
||||||
|
No inputs
|
||||||
|
|
||||||
|
## Outputs
|
||||||
|
|
||||||
|
No outputs
|
||||||
|
|
||||||
|
## Example usage
|
||||||
|
|
||||||
|
uses: actions/gitleaks-docker-action@v1
|
||||||
|
|
||||||
8
action.yml
Normal file
8
action.yml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
name: 'Gitleaks docker'
|
||||||
|
description: 'Test code for secrets using Gitleaks'
|
||||||
|
inputs:
|
||||||
|
outputs:
|
||||||
|
runs:
|
||||||
|
using: 'docker'
|
||||||
|
image: 'Dockerfile'
|
||||||
|
args: []
|
||||||
10
entrypoint.sh
Executable file
10
entrypoint.sh
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh -l
|
||||||
|
#
|
||||||
|
# Copyright:
|
||||||
|
# Copyright (c) 2023. AVROID, Ltd. All Rights Reserved.
|
||||||
|
#
|
||||||
|
|
||||||
|
echo "Processing event '$GITHUB_EVENT_NAME'"
|
||||||
|
|
||||||
|
gitleaks detect --verbose --redact --log-opts "--first-parent --no-merges origin/$GITHUB_BASE_REF..$GITHUB_SHA"
|
||||||
|
|
||||||
Reference in New Issue
Block a user