Skip to content

Commit

Permalink
Add CodeQL workflow for GitHub code scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMicky-FR committed Dec 23, 2022
1 parent 8f4d06e commit 40b6f1c
Show file tree
Hide file tree
Showing 5 changed files with 497 additions and 232 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CodeQL

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
analyze:
name: Analyze

runs-on: ubuntu-latest

permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:javascript"

2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [14, 16, 18]
node-version: [ 14, 16, 18 ]

steps:
- name: Checkout repository
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# AzAuth JS

[![Node.js CI](https://img.shields.io/github/workflow/status/Azuriom/AzAuthJS/Node.js%20CI?style=flat-square)](https://github.com/Azuriom/AzAuthJS/actions)
[![Language grade](https://img.shields.io/lgtm/grade/javascript/github/Azuriom/AzAuthJS?label=code%20quality&logo=lgtm&logoWidth=18&style=flat-square)](https://lgtm.com/projects/g/Azuriom/AzAuthJS/context:javascript)
[![Node.js CI](https://img.shields.io/github/actions/workflow/status/Azuriom/AzauthJS/tests.yml?branch=master&style=flat-square)](https://github.com/Azuriom/AzAuthJS/actions/workflows/build.yml)
[![Code QL](https://img.shields.io/github/actions/workflow/status/Azuriom/AzauthJS/codeql.yml?branch=master&style=flat-square)](https://github.com/Azuriom/AzAuthJS/actions/workflows/codeql.yml)
[![npm Version](https://img.shields.io/npm/v/azuriom-auth.svg?style=flat-square)](https://www.npmjs.org/package/azuriom-auth)
[![Chat](https://img.shields.io/discord/625774284823986183?color=5865f2&label=Discord&logo=discord&logoColor=fff&style=flat-square)](https://azuriom.com/discord)

Expand Down
Loading

0 comments on commit 40b6f1c

Please sign in to comment.