Skip to content

Commit

Permalink
fix git-secrets pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
npololnskii committed Jun 19, 2024
1 parent f71591a commit ccb44a2
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/git-secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
# This workflow contains a single job called "main"
git-secrets:
# The type of runner that the job will run on
runs-on: macos-latest
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -20,10 +20,13 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.8
# - name: Installing dependencies
# run:
# brew install git less openssh


- name: Installing scanning tool
run: "brew install git-secrets\ngit secrets --install\ngit secrets --register-aws \n"
run: |
sudo sh -c "echo 'deb https://gitsecret.jfrog.io/artifactory/git-secret-deb git-secret main' >> /etc/apt/sources.list"
wget -qO - 'https://gitsecret.jfrog.io/artifactory/api/gpg/key/public' | sudo apt-key add -
sudo apt-get update && sudo apt-get install -y git-secret
- name: Running scanning tool
run: git secrets --scan

0 comments on commit ccb44a2

Please sign in to comment.