Skip to content

chore(deps-dev): bump wrangler from 4.95.0 to 4.110.0 #451

chore(deps-dev): bump wrangler from 4.95.0 to 4.110.0

chore(deps-dev): bump wrangler from 4.95.0 to 4.110.0 #451

Workflow file for this run

name: security-sast
on:
push:
branches: [main]
paths:
- "packages/**"
- "apps/**"
- ".github/workflows/security-sast.yml"
pull_request:
branches: [main]
schedule:
- cron: "29 6 * * 1"
concurrency:
group: security-sast-${{ github.ref }}
cancel-in-progress: false
permissions:
contents: read
security-events: write
pull-requests: read
jobs:
semgrep:
name: semgrep SAST
runs-on: ubuntu-24.04
timeout-minutes: 15
container:
image: semgrep/semgrep:1.142.0@sha256:03402a5040a88a570dec58375ef1a19fa777dd61575afdc7d5527ddf308dd765
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
- name: Trust the runner-prepared workspace
working-directory: ${{ github.workspace }}
run: git config --global --add safe.directory '*'
- name: Detect relevant changes
uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
id: filter
with:
filters: |
code:
- 'packages/**'
- 'apps/**'
- '.github/workflows/security-sast.yml'
- name: Compute baseline
if: steps.filter.outputs.code == 'true'
id: baseline
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
echo "ref=${{ github.event.pull_request.base.sha }}" >> "$GITHUB_OUTPUT"
else
echo "ref=" >> "$GITHUB_OUTPUT"
fi
- name: Run semgrep
if: steps.filter.outputs.code == 'true'
shell: bash
run: |
BASELINE="${{ steps.baseline.outputs.ref }}"
ARGS=(
scan
--config=p/owasp-top-ten
--config=p/javascript
--config=p/typescript
--sarif --output=semgrep-results.sarif
--error
packages/core/src
apps/docs/src
)
if [ -n "$BASELINE" ]; then
ARGS+=(--baseline-commit="$BASELINE")
fi
semgrep "${ARGS[@]}"
- name: Upload semgrep SARIF
if: always()
uses: github/codeql-action/upload-sarif@7c1e4cf0b20d7c1872b26569c00ba908797a59bf # v4
with:
sarif_file: semgrep-results.sarif
category: semgrep
continue-on-error: true