Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ markdown_security_temp.md
*.pyc
test.py
*.cpython-312.pyc`
file_generator.py
*.md
file_generator.py
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Security Tools Scanning

The purpose of this action is to run various security tools, process their output, and then comment the results on a PR. It is expected to only run this on PRs

## Example Usage

```yaml
name: Security Scan Workflow

on:
pull_request:
[opened, synchronize]

jobs:
security-scan:
runs-on: ubuntu-latest
permissions:
pull-requests: write # Set required permissions here

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Run Security Scan and Comment Action
uses: dacoburn/security-tools@v1.0.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
trufflehog_exclude_dir: "node_modules/*,vendor,.git/*"
bandit_exclude_dir: "tests,migrations,tests,test,.venv,venv"
bandit_rules: "B101,B102,B105,B106,B107,B110,B603,B605,B607"
gosec_rules: "critical,high,medium"
trivy_exclude_dir: "/path/to/ignore"
```
3 changes: 0 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ inputs:
required: false
default: ""

permissions:
pull-requests: write

branding:
icon: "shield"
color: "blue"
Expand Down