Bump the nuget-security group with 28 updates #23
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 | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| # Semgrep performs static analysis to catch security issues, bugs, and anti-patterns. | |
| # Runs on pull requests only to conserve GitHub Actions minutes on Free tier. | |
| # Uses 'p/ci' config which includes security rules for multiple languages. | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| security-events: write # For uploading SARIF results | |
| jobs: | |
| semgrep: | |
| name: Semgrep Static Analysis | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Run Semgrep | |
| uses: returntocorp/semgrep-action@v1 | |
| with: | |
| config: p/ci # Security-focused ruleset | |
| generateSarif: true | |
| - name: Upload SARIF results | |
| if: always() | |
| uses: github/codeql-action/upload-sarif@v3 | |
| with: | |
| sarif_file: semgrep.sarif |