Skip to content

Commit

Permalink
scan-screts.yml commit eidldi
Browse files Browse the repository at this point in the history
  • Loading branch information
BozdoganMehmetozkan committed Aug 27, 2024
1 parent ecada95 commit 1cd47f8
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions scan-secrets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Scan for Secrets

on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

jobs:
scan-secrets:
name: Run TruffleHog and git-secrets
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install TruffleHog
run: |
pip install truffleHog
- name: Scan for secrets with TruffleHog
run: |
truffleHog --regex --entropy=True .
- name: Install git-secrets
run: |
sudo apt-get update
sudo apt-get install -y git-secrets
- name: Initialize git-secrets
run: |
git secrets --install
git secrets --register-aws # AWS anahtarlarını taramak için
- name: Scan for secrets with git-secrets
run: |
git secrets --scan

0 comments on commit 1cd47f8

Please sign in to comment.