diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 000000000..7c528307b --- /dev/null +++ b/.github/workflows/codeql.yml @@ -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 diff --git a/README.rst b/README.rst index 04131a6d2..8b39cf9c9 100644 --- a/README.rst +++ b/README.rst @@ -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 `_. With PRAW there's no diff --git a/setup.py b/setup.py index a350a9e78..fded061aa 100644 --- a/setup.py +++ b/setup.py @@ -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"]