Logging handler to send logs to your OpenSearch cluster with bulk SSL. Forked from https://github.com/logzio/logzio-python-handler
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.2 KiB

  1. name: git-secrets
  2. # Controls when the workflow will run
  3. # Triggers the workflow on push or pull request events but only for the main branch
  4. on: [push]
  5. # A workflow run is made up of one or more jobs that can run sequentially or in parallel
  6. jobs:
  7. # This workflow contains a single job called "main"
  8. git-secrets:
  9. # The type of runner that the job will run on
  10. runs-on: ubuntu-22.04
  11. # Steps represent a sequence of tasks that will be executed as part of the job
  12. steps:
  13. - name: Check Out Source Code
  14. uses: actions/checkout@v3
  15. - name: Set up Python 3.8
  16. uses: actions/setup-python@v4
  17. with:
  18. python-version: 3.8
  19. - name: Installing dependencies
  20. run:
  21. sudo apt-get install less openssh-server
  22. - name: Installing scanning tool
  23. run: |
  24. eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
  25. ln -s "$(which echo)" /usr/local/bin/say
  26. brew install git-secrets
  27. git secrets --install
  28. git secrets --register-aws
  29. - name: Running scanning tool
  30. run:
  31. eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
  32. git secrets --scan