* Use 'ubuntu-latest' instead of 'ubuntu-18.04' for longevity * Update 'branches' configurations to be sequences as expected
25 lines
661 B
YAML
25 lines
661 B
YAML
name: CodeQL analysis
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- '**/*.js'
|
|
- '.github/workflows/codeql.yml'
|
|
|
|
jobs:
|
|
build:
|
|
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
|
|
- uses: github/codeql-action/init@v1
|
|
with:
|
|
languages: javascript # comma separated list of values from {go, python, javascript, java, cpp, csharp} (not YET ruby, sorry!)
|
|
- uses: github/codeql-action/analyze@v1
|
|
continue-on-error: true
|