Skip to content
Merged
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
8 changes: 8 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ jobs:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
secrets: inherit

check-deps:
name: Run Dependency Checks
uses: ./.github/workflows/unused.yml
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
secrets: inherit

all-passed:
name: Check Build Status
runs-on: ubuntu-latest
Expand All @@ -76,6 +83,7 @@ jobs:
- run-tests
- code-inspection
- build-docker
- check-deps
steps:
- name: Harden runner
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/unused.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Dependencies

on:
workflow_call:
inputs:
ref:
required: true
type: string

permissions:
contents: read

jobs:
lint-dependencies:
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-latest
name: Lint Dependencies

steps:
- name: Harden runner
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit

- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ inputs.ref }}

- name: Install poetry
run: |
pipx install poetry

- name: Setup Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version-file: 'pyproject.toml'
cache: 'poetry'

- name: Install Dependencies
run: poetry install --no-interaction --sync --all-extras

- name: Inspect Dependencies
uses: mridang/action-dependency-insight@v1
3 changes: 3 additions & 0 deletions devbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
],
"docgen": [
"composer docgen"
],
"depcheck": [
"poetry run fawltydeps"
]
}
}
Expand Down
185 changes: 143 additions & 42 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading