diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a172ead..0393b9f 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -12,19 +12,13 @@ on: jobs: codeql: if: github.actor != 'dependabot[bot]' || github.actor != 'protected-auto-commits[bot]' - name: Analyze (${{ matrix.language }}) + name: Analyze Python runs-on: ubuntu-latest permissions: actions: read contents: read security-events: write - strategy: - fail-fast: false - matrix: - include: - - language: python - steps: - name: Checkout repository uses: actions/checkout@v4 @@ -32,7 +26,7 @@ jobs: - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: - languages: ${{ matrix.language }} + languages: python queries: +security-extended - name: Autobuild @@ -41,7 +35,7 @@ jobs: - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 with: - category: "/language:${{matrix.language}}" + category: "/language:python" output: codeql-report.sarif - name: Upload CodeQL Results @@ -109,7 +103,7 @@ jobs: elif (( $(echo "$score >= 5" | bc -l) )); then color="orange" fi - badge="![pylint](https://img.shields.io/badge/linting-pylint-$score-$color)" + badge="![Pylint](https://img.shields.io/badge/Pylint-$score-$color?logo=python)" sed -i 's|!\[pylint\](.*)|'"$badge"'|' README.md git config --global user.email "action@github.com" git config --global user.name "GitHub Action" diff --git a/README.md b/README.md index f6fae30..e9239f9 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Release](https://github.com/Nicconike/Steam-Stats/actions/workflows/release.yml/badge.svg)](https://github.com/Nicconike/Steam-Stats/actions/workflows/release.yml) [![CodeQL & Pylint](https://github.com/Nicconike/Steam-Stats/actions/workflows/codeql.yml/badge.svg)](https://github.com/Nicconike/Steam-Stats/actions/workflows/codeql.yml) [![Bandit](https://github.com/Nicconike/Steam-Stats/actions/workflows/sast.yml/badge.svg)](https://github.com/Nicconike/Steam-Stats/actions/workflows/sast.yml) -![pylint](https://img.shields.io/badge/linting-pylint-9.28-brightgreen) +![Pylint](https://img.shields.io/badge/Pylint-9.28-brightgreen?logo=python) [![codecov](https://codecov.io/gh/Nicconike/Steam-Stats/graph/badge.svg?token=SC5P7CS1BW)](https://codecov.io/gh/Nicconike/Steam-Stats) ![Docker Image Size](https://img.shields.io/docker/image-size/nicconike/steam-stats?logo=docker&label=Docker%20Image&link=https%3A%2F%2Fhub.docker.com%2Fr%2Fnicconike%2Fsteam-stats) ![Docker Pulls](https://img.shields.io/docker/pulls/nicconike/steam-stats?logo=docker&label=Docker%20Pulls&link=https%3A%2F%2Fhub.docker.com%2Fr%2Fnicconike%2Fsteam-stats) @@ -139,8 +139,6 @@ And thank you for considering to contribute. - [Scout-Action](https://github.com/docker/scout-action) - **CodeQL** - [CodeQL-Action](https://github.com/github/codeql-action) - - **Pylint** - - [Pylint-Github-Action](https://github.com/Silleellie/pylint-github-action) - **Codecov** - [Codecov-Action](https://github.com/codecov/codecov-action) - **Styles**