Skip to content

Commit

Permalink
Merge pull request #6 from iamjazzar/codeql
Browse files Browse the repository at this point in the history
Create codeql-analysis.yml
  • Loading branch information
iamjazzar authored Jun 12, 2022
2 parents edb2d35 + 4fe6e7d commit a8b9b6f
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
44 changes: 44 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '40 3 * * 4'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'python' ]
# More about CodeQL language support at https://aka.ms/codeql-docs/language-support

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<a href="https://badge.fury.io/py/matn">
<img style="max-width: 100%;" alt="Tests" src="https://badge.fury.io/py/matn.svg" />
</a>
<a href="https://github.com/iamjazzar/matn/actions/workflows/codeql-analysis.yml">
<img src="https://github.com/iamjazzar/matn/actions/workflows/codeql-analysis.yml/badge.svg" />
</a>
</h1>
<p align="center">
<a href="https://www.ahmedjazzar.com/">
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name="matn",
version="0.2.0",
version="0.2.1",
packages=["matn"],
install_requires=[],
entry_points={
Expand Down

0 comments on commit a8b9b6f

Please sign in to comment.