Skip to content

Commit

Permalink
ci: update badge url & codeql workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicconike committed Jul 1, 2024
1 parent f717f61 commit ee23446
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,21 @@ 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

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

- name: Autobuild
Expand All @@ -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
Expand Down Expand Up @@ -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"
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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**
Expand Down

0 comments on commit ee23446

Please sign in to comment.