Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Nov 6, 2024
1 parent 778bf54 commit 7f54b7f
Showing 1 changed file with 27 additions and 17 deletions.
44 changes: 27 additions & 17 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,47 @@ on:
env:
CODEQL_EXTRACTOR_GO_BUILD_TRACING: 'on'

permissions:
security-events: write

jobs:
analyze:
name: Analyze
analyze-go:
name: Analyze Go
runs-on: ubuntu-latest
permissions:
security-events: write
strategy:
fail-fast: false
matrix:
include:
- language: go
build-mode: none
- language: javascript-typescript
build-mode: autobuild
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23'
if: ${{ matrix.language == 'go' }}
- uses: github/codeql-action/init@v3
with:
config-file: ./.github/codeql/codeql-config.yaml
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
languages: go
- name: Build Go sources
run: |
set -x
go build -v ./cmd/actionlint
GOOS=js GOARCH=wasm go build -v -o ./playground/main.wasm ./playground
if: ${{ matrix.language == 'go' }}
- uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
category: "/language:go"
analyze-ts:
name: Analyze TypeScript
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./playground
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
- uses: github/codeql-action/init@v3
with:
config-file: ./.github/codeql/codeql-config.yaml
languages: javascript-typescript
- name: Build playground
run: make build
- uses: github/codeql-action/analyze@v3
with:
category: "/language:javascript-typescript"

0 comments on commit 7f54b7f

Please sign in to comment.