Stagger the hourly refreshes and shorten their budget #60
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: Semgrep Scan | |
| on: push | |
| jobs: | |
| semgrep: | |
| name: Semgrep Analysis | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.x" | |
| - name: Install Semgrep, rugo, and upload client | |
| run: python -m pip install --no-cache-dir semgrep rugo opteryx-upload | |
| - name: Run Semgrep | |
| run: semgrep scan --config=auto --json --output=semgrep-report.json | |
| - name: Upload results to Opteryx | |
| env: | |
| UPLOAD_CLIENT: ${{ secrets.UPLOAD_CLIENT }} | |
| UPLOAD_TOKEN: ${{ secrets.UPLOAD_TOKEN }} | |
| run: python scripts/upload_semgrep_results.py semgrep-report.json |