Skip to content

Commit

Permalink
chore (secrets): add false positive pattern to .gitallowed
Browse files Browse the repository at this point in the history
  • Loading branch information
MazenAli committed Jul 20, 2024
2 parents 76e87e3 + 0961160 commit 24cab65
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitallowed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
git secrets --add 'PRIVATE KEY'
54 changes: 54 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI

on:
push:
branches:
- main
- 'feat/**'
- 'feature/**'
pull_request:
branches:
- main

jobs:
build:
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.11' # Use the appropriate version for your project

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y make
sudo apt-get install -y git
sudo apt-get install -y curl
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install git-secrets
run: |
git clone https://github.com/awslabs/git-secrets.git
cd git-secrets
sudo make install
git secrets --install
git secrets --register-aws
git secrets --add 'PRIVATE KEY'
- name: Set up Poetry virtual environment
run: |
poetry config virtualenvs.in-project true
poetry install --no-root
- name: Run Makefile tasks
run: |
make all

0 comments on commit 24cab65

Please sign in to comment.