CI/CD Integrations
Badges
It’s possible to add badges to your documentation. DepsHub supports the following badge:
Where:
- <your_organization>is the name of your GitHub organization.
- <your_repository>is the name of your GitHub repository.
- <your_workflow_file>is the name of your GitHub Actions workflow file.
For example, the following badge shows the status of the depshub.yml workflow in the DepsHubHQ/depshub repository:
GitHub Actions
You can find the official DepsHub GitHub Action in this repository: depshub-action.
Example:
name: Run DepsHub
on:  push:    branches:      - main  pull_request:
jobs:  depshub-lint:    runs-on: ubuntu-latest
    steps:      - name: Checkout code        uses: actions/checkout@v4
      - name: Run DepsHub        uses: DepsHubHQ/depshub-action@v1        with:          path: "./src" # optional          config: "./depshub-config.yml" # optionalMore options can be found in the repository’s README.
Other
DepsHub is available as a CLI tool. You can install it on your CI/CD system as described in the installation guide.