Skip to content

Commit

Permalink
Create codeql-analysis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
camposcristian authored Sep 9, 2020
1 parent 1161a8a commit 02d1b9e
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: "CodeQL"

on:
push:
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
schedule:
- cron: '0 10 * * 5'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: ['javascript']
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

3 comments on commit 02d1b9e

@vercel
Copy link

@vercel vercel bot commented on 02d1b9e Sep 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aime-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Size Checks (0 failures)

Size Checks

Label Value Threshold Success
out/favicon.ico 2.09 KB 4 KB
out/index.html 60.45 KB 80 KB
out/service-worker.js 13.22 KB 15 KB
out 8.98 MB 70 MB
.next/service-worker.js 13.22 KB 15 KB

Heap Snapshot Checks (0 failures)

Heap Snapshot Checks

Label Value Threshold Success
Documents 3 11
Frames 1 5
JSHeapTotalSize 3657728 21889024
JSHeapUsedSize 2294952 13685832
LayoutCount 2 35
Nodes 718 1250
RecalcStyleCount 3 129

Axe Audits (0 failures)

Axe Audits

Label Value Threshold Success
aria-allowed-attr critical
aria-allowed-role none
aria-hidden-body none
aria-required-attr none
aria-required-children none
aria-required-parent none
aria-roles none
aria-valid-attr-value none
aria-valid-attr none
avoid-inline-spacing none
button-name none
bypass none
color-contrast serious serious
document-title none
duplicate-id-active none
duplicate-id minor minor
empty-heading none
form-field-multiple-labels none
heading-order moderate moderate
html-has-lang none
html-lang-valid none
image-alt none
image-redundant-alt none
label-title-only none
landmark-banner-is-top-level none
landmark-contentinfo-is-top-level none
landmark-main-is-top-level none
landmark-no-duplicate-banner none
landmark-no-duplicate-contentinfo none
landmark-one-main moderate
landmark-unique moderate moderate
link-name serious
list serious serious
listitem none
meta-viewport-large none
meta-viewport critical
page-has-heading-one moderate
duplicate-id minor minor
heading-order moderate moderate
label critical critical
landmark-unique moderate moderate
list serious serious
region moderate moderate

Lighthouse Audits (0 failures)

Lighthouse Audits

Label Value Threshold Success
Performance 82 80
Accessibility 90 80
Best Practices 85 80
SEO 94 85
Progressive Web App 68 60

@aime-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Size Checks (0 failures)

Size Checks

Label Value Threshold Success
out/favicon.ico 2.09 KB 4 KB
out/index.html 60.44 KB 80 KB
out/service-worker.js 13.23 KB 15 KB
out 8.98 MB 70 MB
.next/service-worker.js 13.23 KB 15 KB

Axe Audits (0 failures)

Axe Audits

Label Value Threshold Success
aria-allowed-attr critical
aria-allowed-role none
aria-hidden-body none
aria-required-attr none
aria-required-children none
aria-required-parent none
aria-roles none
aria-valid-attr-value none
aria-valid-attr none
avoid-inline-spacing none
button-name none
bypass none
color-contrast serious serious
document-title none
duplicate-id-active none
duplicate-id minor minor
empty-heading none
form-field-multiple-labels none
heading-order moderate moderate
html-has-lang none
html-lang-valid none
image-alt none
image-redundant-alt none
label-title-only none
landmark-banner-is-top-level none
landmark-contentinfo-is-top-level none
landmark-main-is-top-level none
landmark-no-duplicate-banner none
landmark-no-duplicate-contentinfo none
landmark-one-main moderate
landmark-unique moderate moderate
link-name serious
list serious serious
listitem none
meta-viewport-large none
meta-viewport critical
page-has-heading-one moderate
duplicate-id minor minor
heading-order moderate moderate
label critical critical
landmark-unique moderate moderate
list serious serious
region moderate moderate

Heap Snapshot Checks (0 failures)

Heap Snapshot Checks

Label Value Threshold Success
Documents 3 11
Frames 1 5
JSHeapTotalSize 3657728 21889024
JSHeapUsedSize 2294952 13685832
LayoutCount 9 35
Nodes 718 1250
RecalcStyleCount 3 129

Lighthouse Audits (0 failures)

Lighthouse Audits

Label Value Threshold Success
Performance 83 80
Accessibility 90 80
Best Practices 85 80
SEO 94 85
Progressive Web App 68 60

Please sign in to comment.