Initial commit

This commit is contained in:
Andrey Danin
2023-12-06 19:41:14 +03:00
commit 29ee36f784
4 changed files with 42 additions and 0 deletions

6
Dockerfile Normal file
View File

@@ -0,0 +1,6 @@
FROM zricethezav/gitleaks:v8.18.1
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

18
README.md Normal file
View 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
View 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
View 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"