dependabot[bot] d75fef44db
chore(deps): bump github/codeql-action from 1 to 2 (#214)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-26 14:10:26 -03:00

47 lines
927 B
YAML

name: 'CodeQL'
on:
push:
branches: [main]
paths: ['**.js', '**.jsx', '**.ts', '**.tsx']
pull_request:
branches: [main]
schedule:
- cron: '0 0/12 * * *'
permissions: write-all
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ['javascript']
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Setup node and restore cached dependencies
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- name: Install packages
run: yarn install --prefer-offline
- name: Build
run: yarn build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2