Update docker.io/golang Docker digest to fcae9e0 #1220
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 | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
permissions: | |
contents: read | |
jobs: | |
semgrep: | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | |
name: Scan | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5 # v2.0.0 | |
with: | |
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0 | |
- uses: returntocorp/semgrep-action@316a1751c53ffb6689b8726910e8204ffb591b4f # v1 | |
with: | |
config: >- | |
p/security-audit | |
p/secrets | |
generateSarif: "1" | |
# Upload findings to GitHub Advanced Security Dashboard | |
- name: Upload SARIF file for GitHub Advanced Security Dashboard | |
uses: github/codeql-action/upload-sarif@a073c66b2accf653a511d88537804dcafa07812e # v2 | |
with: | |
sarif_file: semgrep.sarif | |
if: always() | |