Skip to content

Bump microsoft/DevSkim-Action from 1.0.7 to 1.0.10 #1771

Bump microsoft/DevSkim-Action from 1.0.7 to 1.0.10

Bump microsoft/DevSkim-Action from 1.0.7 to 1.0.10 #1771

Workflow file for this run

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:
image: returntocorp/semgrep
steps:
- name: Harden Runner
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 # v2.4.1
with:
disable-sudo: true
egress-policy: audit
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- run: semgrep scan --sarif --output=semgrep.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@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2.0.0
with:
files: semgrep.sarif
- name: Upload SARIF file for GitHub Advanced Security Dashboard
uses: github/codeql-action/upload-sarif@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
if: steps.check_files.outputs.files_exists == 'true'
with:
sarif_file: semgrep.sarif