Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
interval: monthly

- package-ecosystem: docker
directory: /
schedule:
interval: weekly
interval: monthly
ignore:
- dependency-name: python

- package-ecosystem: pip
directory: /
schedule:
interval: weekly
interval: monthly
ignore:
- dependency-name: bandit
- dependency-name: ruff
Expand Down
24 changes: 12 additions & 12 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
documentation:
- changed-files:
- any-glob-to-any-file: ['**/*.md', '**/*.rst', 'docs/**']
- changed-files:
- any-glob-to-any-file: ["**/*.md", "**/*.rst", "docs/**"]

dependencies:
- changed-files:
- any-glob-to-any-file: ['setup.py', 'requirements.txt']
- changed-files:
- any-glob-to-any-file: ["setup.py", "requirements.txt"]

testing:
- changed-files:
- any-glob-to-any-file: 'test/**'
- changed-files:
- any-glob-to-any-file: "test/**"

docker:
- changed-files:
- any-glob-to-any-file: '**/Dockerfile'
- changed-files:
- any-glob-to-any-file: "**/Dockerfile"

github_actions:
- changed-files:
- any-glob-to-any-file: '.github/workflows/*.yml'
- changed-files:
- any-glob-to-any-file: ".github/workflows/*.yml"

python:
- changed-files:
- any-glob-to-any-file: '**/*.py'
- changed-files:
- any-glob-to-any-file: "**/*.py"
62 changes: 31 additions & 31 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
name: Post coverage comment

on:
workflow_run:
workflows: ['Python checks']
types:
- completed
workflow_run:
workflows: ["Python checks"]
types:
- completed

permissions:
contents: read
contents: read

jobs:
test:
name: Run tests & display coverage
test:
name: Run tests & display coverage

runs-on: ubuntu-latest
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'

permissions:
# Gives the action the necessary permissions for publishing new
# comments in pull requests.
pull-requests: write
# Gives the action the necessary permissions for editing existing
# comments (to avoid publishing multiple comments in the same PR)
contents: write
# Gives the action the necessary permissions for looking up the
# workflow that launched this workflow, and download the related
# artifact that contains the comment to be published
actions: read
permissions:
# Gives the action the necessary permissions for publishing new
# comments in pull requests.
pull-requests: write
# Gives the action the necessary permissions for editing existing
# comments (to avoid publishing multiple comments in the same PR)
contents: write
# Gives the action the necessary permissions for looking up the
# workflow that launched this workflow, and download the related
# artifact that contains the comment to be published
actions: read

steps:
# DO NOT run actions/checkout here, for security reasons
# For details, refer to https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
- uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40
with:
disable-sudo: false
egress-policy: audit
steps:
# DO NOT run actions/checkout here, for security reasons
# For details, refer to https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
- uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40
with:
disable-sudo: false
egress-policy: audit

- uses: py-cov-action/python-coverage-comment-action@63f52f4fbbffada6e8dee8ec432de7e01df9ba79 # v3.35
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PR_RUN_ID: ${{ github.event.workflow_run.id }}
- uses: py-cov-action/python-coverage-comment-action@63f52f4fbbffada6e8dee8ec432de7e01df9ba79 # v3.35
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PR_RUN_ID: ${{ github.event.workflow_run.id }}
10 changes: 5 additions & 5 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [pull_request]
permissions: read-all

jobs:
dependency-review:
dependency-review:
name: Dependency review

runs-on: ubuntu-latest
Expand All @@ -16,10 +16,10 @@ jobs:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.deps.dev:443
api.github.com:443
api.securityscorecards.dev:443
github.com:443
api.deps.dev:443
api.github.com:443
api.securityscorecards.dev:443
github.com:443

- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- main
- major-release
tags:
- 'v*'
- "v*"
permissions: read-all

env:
Expand All @@ -28,6 +28,10 @@ jobs:
build:
runs-on: ubuntu-latest

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

steps:
- uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40
with:
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/pr-label-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,21 @@ name: PR label checking

on:
pull_request_target:
types: [opened, edited, reopened, ready_for_review, labeled, unlabeled, synchronize]
types:
- opened
- edited
- reopened
- ready_for_review
- labeled
- unlabeled
- synchronize

permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
label-from-files:
runs-on: ubuntu-latest
Expand Down
23 changes: 16 additions & 7 deletions .github/workflows/python-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
fail-fast: false
matrix:
python-version:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- "3.10"
- "3.11"
- "3.12"
- "3.13"
os:
- ubuntu-latest
- windows-latest
Expand All @@ -48,6 +48,15 @@ jobs:
permissions:
contents: write

concurrency:
group: >-
${{ github.workflow }}
-${{ github.event.pull_request.number || github.ref }}
-${{ matrix.os }}
-${{ matrix.python-version }}
-${{ matrix.resolution }}
cancel-in-progress: true

steps:
- uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40
with:
Expand Down Expand Up @@ -157,9 +166,9 @@ jobs:
fail-fast: false
matrix:
extra: ${{ fromJson(needs.pytest-extras-config.outputs.extras) }}
python-version: ['3.13']
os: ['ubuntu-latest']
resolution: ['highest']
python-version: ["3.13"]
os: ["ubuntu-latest"]
resolution: ["highest"]

steps:
- uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
build:
runs-on: ubuntu-latest

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
CACHE_GLOBS: |
**/pyproject.toml
Expand Down Expand Up @@ -58,10 +62,10 @@ jobs:
fail-fast: false
matrix:
python-version:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- "3.10"
- "3.11"
- "3.12"
- "3.13"
os:
- ubuntu-latest
- windows-latest
Expand Down Expand Up @@ -97,8 +101,8 @@ jobs:

- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
python-version: ${{ matrix.python-version }}
cache: pip
python-version: ${{ matrix.python-version }}
cache: pip

- name: install parsons from file
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/security-scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ on:
# To guarantee Maintained check is occasionally updated. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
pull_request:
branches: [ 'main', 'major-release' ]
branches: ["main", "major-release"]
schedule:
- cron: '45 16 * * 2'
- cron: "45 16 * * 2"

permissions: read-all

Expand Down
Loading