-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.14 KB
/
Copy pathfleet-contract.yml
File metadata and controls
47 lines (40 loc) · 1.14 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
44
45
46
47
---
name: Fleet Contract
on:
workflow_dispatch:
schedule:
- cron: "17 5 * * 1"
pull_request:
branches:
- main
paths:
- "fleet/repositories.json"
- "scripts/check-github-fleet.py"
- ".github/workflows/fleet-contract.yml"
- ".github/workflows/ci-gate.yml"
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
validate-manifest:
name: Validate fleet manifest
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Validate schema and repository uniqueness
run: python scripts/check-github-fleet.py --manifest-only
validate-live:
name: Validate live GitHub controls
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Check repository and ruleset invariants
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python scripts/check-github-fleet.py