Skip to content

Commit

Permalink
chore: Update CI including using semgrep pro
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmilton committed Jan 30, 2024
1 parent 8a02160 commit 5f809e8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ on:
push:
branches: [master]
paths-ignore: ['**.md']
pull_request:
branches: [master]
pull_request: {}
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -17,7 +17,7 @@ jobs:
- run: npm install --global pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: build
path: packages/*/dist/**
Expand All @@ -33,7 +33,7 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: build
path: packages
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: build
path: packages
Expand All @@ -93,7 +93,7 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: build
path: packages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: codeql
on:
push:
branches: [master]
pull_request:
branches: [master]
pull_request: {}
workflow_dispatch: {}
schedule:
- cron: '28 6 * * 4'
jobs:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/semgrep-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: semgrep
on:
push:
branches: [master]
pull_request:
branches: [master]
pull_request: {}
workflow_dispatch: {}
schedule:
- cron: '28 6 * * 4'
jobs:
Expand All @@ -18,9 +18,9 @@ jobs:
security-events: write
steps:
- uses: actions/checkout@v4
- run: semgrep ci --sarif --output=semgrep.sarif || true
- run: semgrep ci --sarif > semgrep.sarif
env:
SEMGREP_RULES: p/default
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
- uses: github/codeql-action/upload-sarif@v3
if: always()
with:
Expand Down

0 comments on commit 5f809e8

Please sign in to comment.