1
0
mirror of synced 2025-12-25 11:03:37 -05:00
Files
docs/.github/workflows/codeql.yml
Kevin Heis 55ee70e06b Check that actions specify hashes instead of allowlist (#24042)
* Check that actions specify hashes instead of allowlist

* Fixes for unhashed version

* Update actions-workflows.js
2022-01-04 17:43:40 +00:00

39 lines
1.2 KiB
YAML

name: CodeQL analysis
# **What it does**: This runs CodeQL on our repository.
# **Why we have it**: Security scanning.
# **Who does it impact**: Docs engineering.
on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- '**/*.js'
- '.github/workflows/codeql.yml'
permissions:
actions: read
contents: read
security-events: write
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
build:
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- uses: github/codeql-action/init@5f532563584d71fdef14ee64d17bafb34f751ce5
with:
languages: javascript # comma separated list of values from {go, python, javascript, java, cpp, csharp} (not YET ruby, sorry!)
- uses: github/codeql-action/analyze@5f532563584d71fdef14ee64d17bafb34f751ce5
continue-on-error: true