fix(ci): [OPS-715] add gitleaks secret scanning (#11) #42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| install: sudo apt-get update && sudo apt-get install -y libpcap-dev | |
| - os: macos-latest | |
| install: brew install libpcap | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.23" | |
| - name: Install libpcap | |
| run: ${{ matrix.install }} | |
| - name: Run tests | |
| run: make test | |
| - name: Build | |
| run: make build |