Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Entro Scan Action

Entro is platform for secrets security and non-human Identity management.
Use entro scan action to scan your pull requests for hardcoded secrets and passwords.

## Example:

```yaml
name: Scan PR for hardcoded secrets
on:
pull_request:
branches: [ "main" ]

jobs:
secrets-scan:
runs-on: ubuntu-latest
steps:
- name: 'Get PR commits'
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"

- name: 'Checkout PR branch and all PR commits'
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: ${{ env.PR_FETCH_DEPTH }}

- name: 'Scan for secrets'
uses: liminal-security/scan-action@v1
with:
api-endpoint: ${{ secrets.API_ENDPOINT }}
api-token: ${{ secrets.API_KEY }}
```

### Inputs:

1. `api-endpoint` Entro API endpoint usually `https://api.entro.security`
2. `api-token` Entro API token can be created at [settings page](https://app.entro.security/admin/settings?tab=api-keys).