improve the handling of negative durations with variable expiration #3577
This file contains 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 | |
permissions: read-all | |
on: | |
pull_request: {} | |
push: | |
branches: [master, v2.dev, v3.dev] | |
jobs: | |
semgrep: | |
name: Scan | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
container: | |
# Incompatible with Harden Runner | |
image: returntocorp/semgrep | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- run: semgrep scan --sarif --output=results.sarif | |
env: | |
SEMGREP_RULES: >- | |
p/java | |
p/github-actions | |
p/semgrep-rule-lints | |
p/semgrep-misconfigurations | |
- name: Check file existence | |
id: check_files | |
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0 | |
with: | |
files: results.sarif | |
- name: Upload SARIF file for GitHub Advanced Security Dashboard | |
uses: github/codeql-action/upload-sarif@d68b2d4edb4189fd2a5366ac14e72027bd4b37dd # v3.28.2 | |
if: steps.check_files.outputs.files_exists == 'true' | |
continue-on-error: true | |
with: | |
sarif_file: results.sarif |