Skip to content

Commit

Permalink
Merge pull request #12 from sopel-irc/rip-lgtm
Browse files Browse the repository at this point in the history
Replace LGTM with CodeQL
  • Loading branch information
dgw authored Apr 30, 2024
2 parents bd528c5 + 26b6846 commit 7de43bf
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: "8 20 * * 1"

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

strategy:
fail-fast: false
matrix:
language: [ python ]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

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

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
[![Python Tests](https://github.com/sopel-irc/sopel-bucket/actions/workflows/python-tests.yml/badge.svg?branch=master)](https://github.com/sopel-irc/sopel-bucket/actions/workflows/python-tests.yml)
[![PyPI version](https://badge.fury.io/py/sopel-modules.bucket.svg)](https://badge.fury.io/py/sopel-modules.bucket)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/sopel-irc/sopel-bucket.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/sopel-irc/sopel-bucket/alerts/)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/sopel-irc/sopel-bucket.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/sopel-irc/sopel-bucket/context:python)

**Maintainer:** [@RustyBower](https://github.com/rustybower)

Expand Down

0 comments on commit 7de43bf

Please sign in to comment.