Skip to content

Commit

Permalink
Merge pull request praw-dev#1955 from praw-dev/codeql
Browse files Browse the repository at this point in the history
Add CodeQL
  • Loading branch information
LilSpazJoekp authored May 21, 2023
2 parents 0e6d32c + e6c297d commit 5bc11a3
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
jobs:
analyze:
name: Analyze
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'python' ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
name: "CodeQL"
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: 30 1 * * 6
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ PRAW: The Python Reddit API Wrapper
:alt: pre-commit
:target: https://github.com/pre-commit/pre-commit

.. image:: https://api.securityscorecards.dev/projects/github.com/praw-dev/praw/badge
:alt: OpenSSF Scorecard
:target: https://api.securityscorecards.dev/projects/github.com/praw-dev/praw

PRAW, an acronym for "Python Reddit API Wrapper", is a Python package that allows for
simple access to Reddit's API. PRAW aims to be easy to use and internally follows all of
`Reddit's API rules <https://github.com/reddit/reddit/wiki/API>`_. With PRAW there's no
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"betamax-matchers >=0.3.0, <0.5",
"pytest >=2.7.3",
"requests >=2.20.1, <3",
"urllib3 ==1.26.*, <2",
],
}
extras["lint"] += extras["readthedocs"]
Expand Down

0 comments on commit 5bc11a3

Please sign in to comment.