Skip to content

Update reviewdog/action-alex action to v1.16.1 #1218

Update reviewdog/action-alex action to v1.16.1

Update reviewdog/action-alex action to v1.16.1 #1218

# Copyright 2020 Wayback Archiver. All rights reserved.
# Use of this source code is governed by the MIT license
# that can be found in the LICENSE file.
name: Semgrep
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
types: [ opened, synchronize, reopened ]
workflow_call:
inputs:
egress-policy:
type: string
default: 'block'
description: 'Harden-Runner egress traffic policy'
permissions:
contents: read
jobs:
semgrep:
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
container:
image: semgrep/semgrep@sha256:5930c9438968657745cc8c193e338ec9e08c5ead0b926b1b4ed37e06a9cc2270 # 1.151.0
env:
SEMGREP_SEND_METRICS: 'off'
steps:
- name: Harden Runner
uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2.17.0
with:
disable-sudo: true
egress-policy: ${{ inputs.egress-policy || 'block' }}
disable-telemetry: true
allowed-endpoints: >
github.com:443
api.github.com:443
semgrep.dev:443
- name: Check out code base
if: github.event_name == 'push'
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- name: Check out code base
if: github.event_name == 'pull_request'
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
ref: ${{ github.event.pull_request.head.sha }}
- name: Run Bug Scan
run: semgrep ci
env:
SEMGREP_RULES: 'p/r2c-bug-scan'
- name: Run CI
run: semgrep ci
env:
SEMGREP_RULES: 'p/r2c-ci'
- name: Run Best Practices
run: semgrep ci
env:
SEMGREP_RULES: 'p/r2c-best-practices'
- name: Run Security Audit
run: semgrep ci
env:
SEMGREP_RULES: 'p/r2c-security-audit'
- name: Run GoSec
run: semgrep ci
env:
SEMGREP_RULES: 'p/gosec'
- name: Run insecure-transport Detecting
run: semgrep ci
env:
SEMGREP_RULES: 'p/insecure-transport'