mirror of
https://github.com/h5bp/html5-boilerplate.git
synced 2026-01-09 16:08:01 -05:00
- Allow CodeQL workflow to be run from GitHub Actions WebUI at any time - Set CodeQL to also check for best practises/code problems (as well as security) - Capitalize Publish GH Action - Change Windows Test workflow for consistent file extension (also means its formatted with Prettier) and remove leading empty linebreak - Run Prettier (maybe we should add this to build script to ensure all code is formatted?) - Change .gitattributes to have LF line-endings for more file types
35 lines
649 B
YAML
35 lines
649 B
YAML
name: "CodeQL"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- "!dependabot/**"
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- "!dependabot/**"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v3
|
|
with:
|
|
languages: "javascript"
|
|
queries: +security-and-quality
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v3
|