wip #13
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 of this GitHub Actions workflow. | |
name: Semgrep CE scan | |
on: | |
# Scan in PRs: | |
pull_request: {} | |
# Scan on-demand through GitHub Actions interface: | |
workflow_dispatch: {} | |
# Scan mainline branches and report all findings: | |
push: | |
branches: ["master", "!main"] | |
permissions: | |
contents: read | |
jobs: | |
semgrep: | |
name: semgrep-oss/scan | |
runs-on: ubuntu-latest | |
container: | |
# A Docker image with Semgrep installed. Do not change this. | |
image: semgrep/semgrep | |
if: (github.actor != 'dependabot[bot]') | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run Semgrep | |
run: semgrep scan --config auto --error |