Skip to content

feat: add cargo-unused-deps #1164

feat: add cargo-unused-deps

feat: add cargo-unused-deps #1164

Workflow file for this run

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# GENERATED BY cargo-anvil. DO NOT EDIT DIRECTLY.
# Update cargo-anvil and regenerate; repository-specific edits stop automatic updates.
# Update behaviour: https://github.com/microsoft/ox-tools/blob/main/crates/cargo-anvil/docs/design/updates.md
name: Anvil
# Workflow and caller display names contribute to GitHub's check hierarchy.
# Treat changes as compatibility changes for repository rulesets.
on:
pull_request: {}
merge_group: {}
permissions:
contents: read
concurrency:
group: anvil-pr-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
validation:
name: PR Job
uses: ./.github/workflows/anvil-pr-impl.yml
# A called workflow cannot elevate beyond its caller. The same caller handles
# pull requests and merge groups so GitHub emits only one PR Job check.
# Write operations remain guarded to same-repository pull_request events in
# the reusable workflow; merge-group runs receive but do not use these scopes.
permissions:
contents: read
# Publish supplemental failure commit statuses so the PR checks rollup identifies the
# concrete failed Just recipe before the aggregate workflow job.
statuses: write
# Write needed so the pr-fast job can upsert/clear the sticky PR
# comment carrying the cargo-semver-checks advisory (and any
# future advisory checks that emit target/anvil/comments/*).
pull-requests: write
with:
base_ref: ${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha }}
publish_commit_statuses: ${{ github.event_name == 'pull_request' }}
secrets: inherit