Deactivate some actions on forks Closes #17220 Co-authored-by: chiedo <chiedo@users.noreply.github.com> Co-authored-by: Rachael Sewell <rachmari@github.com>
23 lines
645 B
YAML
23 lines
645 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
|