Skip to content

Bump step-security/harden-runner from 2.7.1 to 2.8.0 (#159) #337

Bump step-security/harden-runner from 2.7.1 to 2.8.0 (#159)

Bump step-security/harden-runner from 2.7.1 to 2.8.0 (#159) #337

Workflow file for this run

name: Semgrep
on:
pull_request: {}
push:
branches:
- main
- master
paths:
- .github/workflows/semgrep.yml
schedule:
- cron: '0 0 * * 0'
workflow_call:
permissions: read-all
jobs:
semgrep:
name: Scan
runs-on: ubuntu-24.04
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
actions: read
contents: read
container:
image: returntocorp/semgrep
if: (github.actor != 'dependabot[bot]')
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v1
with:
egress-policy: audit
disable-telemetry: false
allowed-endpoints:
github.com:443
semgrep.dev:443
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
# Run Semgrep as CI
- run: semgrep ci
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}