Files
openobserve/.github/workflows/cargo-deny.yml
T

33 lines
1.2 KiB
YAML

name: "Licenses checker"
on:
# Licences only change with the dependency set: labelled, non-draft PRs that touch the Cargo manifests,
# plus a weekly run for advisories against unchanged dependencies. No post-merge rerun.
pull_request:
types: [opened, reopened, synchronize, labeled, unlabeled, ready_for_review, converted_to_draft]
paths:
- "**/Cargo.lock"
- "**/Cargo.toml"
- "deny.toml"
- ".github/workflows/cargo-deny.yml"
schedule:
- cron: "0 3 * * 1"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
check:
# Nothing runs on a PR without the 'ready-for-ci' label, or on a draft; ci-gate alone reports the state.
if: ${{ github.event_name != 'pull_request' || (contains(github.event.pull_request.labels.*.name, 'ready-for-ci') && github.event.pull_request.draft == false) }}
runs-on: ubicloud-standard-8
timeout-minutes: 10
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/github-auth
- uses: EmbarkStudios/cargo-deny-action@3c6349835b2b7b196a839186cb8b78e02f7b5f25 # v2.1.1
with:
# The command to run with cargo-deny
command: check licenses