Skip to content

chore(codecov.yml): remove unused and redundant configuration options #56

chore(codecov.yml): remove unused and redundant configuration options

chore(codecov.yml): remove unused and redundant configuration options #56

Workflow file for this run

name: "Security"
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: "20 7 * * 0" # Weekly on Sundays
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
codeql:
name: "CodeQL Analysis"
runs-on: ubuntu-latest
permissions:
security-events: write
packages: read
actions: read
contents: read
strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
- language: python
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
dependency-review:
name: "Dependency Review"
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Dependency Review
uses: actions/dependency-review-action@v4
with:
fail-on-severity: high
comment-summary-in-pr: always
security-advisories:
name: "Security Advisories"
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
permissions:
contents: read
security-events: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry --force
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: "poetry"
- name: Install dependencies
run: poetry install --only=main
- name: Run Safety check
run: |
pip install safety
poetry install --without dev
pip freeze > requirements.txt
safety check --json --output safety-report.json -r requirements.txt || true
- name: Upload Safety results
if: always()
uses: actions/upload-artifact@v4
with:
name: safety-report
path: safety-report.json
retention-days: 30
dependabot-auto-merge:
name: "Dependabot Auto-merge"
runs-on: ubuntu-latest
# Only auto-merge dependabot PRs from the same repository (not forks)
if: github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
permissions:
contents: write
pull-requests: write
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Auto-approve patch and minor updates
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}