Add prettier to ./hooks/pre-commit #821
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Runs GitHub's semantic code analysis engine, CodeQL, against a repository's | |
# source code to find security vulnerabilities. It then automatically uploads | |
# the results to GitHub so they can be displayed in the repository's security | |
# tab. | |
name: codeql | |
on: | |
push: | |
branches: ['main'] | |
paths: ['**.ts', '**.js', '**.json', '**.yml'] | |
pull_request: | |
branches: ['main'] | |
paths: ['**.ts', '**.js', '**.json', '**.yml'] | |
types: [opened, synchronize, reopened] | |
jobs: | |
codeql: | |
runs-on: ubuntu-latest | |
if: ${{ !contains(github.event.head_commit.message, '[skip codeql]') }} | |
permissions: | |
# required for all workflows | |
security-events: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: javascript | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |