Repository navigation
43 lines (39 loc) · 1.71 KB
/
Copy pathanvil-pr.yml
File metadata and controls
43 lines (39 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 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.
# Status/comment writes remain guarded to same-repository pull_request events;
# mutation groups also publish their SARIF results to code scanning.
permissions:
contents: read
actions: read
security-events: write
# 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