From 615d4600cdfba8bfcd0297076085c74f81b7aa9c Mon Sep 17 00:00:00 2001 From: Amr Hossam <140510710+AbuMecca@users.noreply.github.com> Date: Mon, 2 Sep 2024 15:06:45 +0300 Subject: [PATCH] Update CI\CD Pipeline.yml --- ".github/workflows/CI\\CD Pipeline.yml" | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git "a/.github/workflows/CI\\CD Pipeline.yml" "b/.github/workflows/CI\\CD Pipeline.yml" index d67b977..1d3e537 100644 --- "a/.github/workflows/CI\\CD Pipeline.yml" +++ "b/.github/workflows/CI\\CD Pipeline.yml" @@ -8,6 +8,23 @@ on: types: [opened, synchronize, reopened] jobs: + detect-secrets: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install detect-secrets + run: pip install --upgrade "git+https://github.com/ibm/detect-secrets.git@master#egg=detect-secrets" + + - name: Run detect-secrets scan + run: detect-secrets scan --update .secrets.baseline + sonarcloud: name: SonarCloud runs-on: ubuntu-latest