6e63cc6b95
Bumps [technote-space/get-diff-action](https://github.com/technote-space/get-diff-action) from 6.1.0 to 6.1.1. - [Release notes](https://github.com/technote-space/get-diff-action/releases) - [Changelog](https://github.com/technote-space/get-diff-action/blob/main/.releasegarc) - [Commits](https://github.com/technote-space/get-diff-action/compare/v6.1.0...v6.1.1) --- updated-dependencies: - dependency-name: technote-space/get-diff-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
name: Semgrep
|
|
on:
|
|
# Scan changed files in PRs, block on new issues only (existing issues ignored)
|
|
pull_request: {}
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- .github/workflows/semgrep.yml
|
|
schedule:
|
|
- cron: '0 0 * * 0'
|
|
jobs:
|
|
# Update from: https://semgrep.dev/docs/semgrep-ci/sample-ci-configs/#github-actions
|
|
semgrep:
|
|
name: Scan
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: returntocorp/semgrep
|
|
if: (github.actor != 'dependabot[bot]')
|
|
steps:
|
|
- name: Permission issue fix
|
|
run: git config --global --add safe.directory /__w/ethermint/ethermint
|
|
- uses: actions/checkout@v3
|
|
- name: Get Diff
|
|
uses: technote-space/get-diff-action@v6.1.1
|
|
with:
|
|
PATTERNS: |
|
|
**/*.go
|
|
**/*.js
|
|
**/*.ts
|
|
**/*.sol
|
|
go.mod
|
|
go.sum
|
|
- uses: actions/checkout@v3
|
|
- run: semgrep scan --sarif --output=semgrep.sarif --config auto
|
|
env:
|
|
# Upload findings to GitHub Advanced Security Dashboard [step 1/2]
|
|
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
|
|
if: "env.GIT_DIFF_FILTERED != ''"
|
|
# Upload findings to GitHub Advanced Security Dashboard [step 2/2]
|
|
- name: Upload SARIF file
|
|
uses: github/codeql-action/upload-sarif@v2
|
|
with:
|
|
sarif_file: semgrep.sarif
|
|
if: "env.GIT_DIFF_FILTERED != ''"
|