Skip to content

Commit

Permalink
Merge pull request #197 from crazy-max/ci-codeql
Browse files Browse the repository at this point in the history
ci: enable SAST scanning with CodeQL
  • Loading branch information
crazy-max authored Oct 30, 2023
2 parents 21a7def + b212b3b commit b525cd9
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: codeql

on:
push:
branches:
- 'main'
pull_request:

permissions:
actions: read
contents: read
security-events: write

env:
NODE_VERSION: 20

jobs:
analyze:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
-
name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript-typescript
-
name: Autobuild
uses: github/codeql-action/autobuild@v2
-
name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:javascript-typescript"
2 changes: 1 addition & 1 deletion src/buildx/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class Builder {
if (value.includes('*')) {
for (const platform of value.split(', ')) {
if (platform.includes('*')) {
platforms.push(platform.replace('*', ''));
platforms.push(platform.replace(/\*/g, ''));
}
}
} else {
Expand Down

0 comments on commit b525cd9

Please sign in to comment.