Repository navigation
56 lines (56 loc) · 2.34 KB
/
Copy pathfrontier5413.yml
File metadata and controls
56 lines (56 loc) · 2.34 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
48
49
50
51
52
53
54
55
56
name: Complete neutral caller conditional admission 5413
on:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: selected-frontier5413-${{ github.ref }}
cancel-in-progress: true
jobs:
replay:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
fetch-depth: 0
sparse-checkout: |
certificates
scripts
docs/research/pr-intake-evidence/pr5413
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
with:
python-version: '3.12'
- name: Materialize the explicit source closure
shell: bash
run: |
python3 -B - <<'PY'
import hashlib, json, pathlib, subprocess
manifest = json.loads(pathlib.Path('certificates/frontier5413-source.json').read_bytes())
for name, digest in manifest['files'].items():
path = pathlib.PurePosixPath(name)
if path.is_absolute() or '..' in path.parts or str(path) != name:
raise ValueError('Unsafe manifest path: ' + name)
data = subprocess.check_output(['git', 'show', 'HEAD:' + name])
if hashlib.sha256(data).hexdigest() != digest:
raise ValueError('Source hash mismatch: ' + name)
dest = pathlib.Path(name)
dest.parent.mkdir(parents=True, exist_ok=True)
dest.write_bytes(data)
mode = subprocess.check_output(["git", "ls-tree", "HEAD", "--", name], text=True).split()[0]
dest.chmod(int(mode, 8) & 0o777)
PY
- run: python3 -B scripts/verify_frontier5413.py --work "$RUNNER_TEMP/frontier5413"
- run: git diff --exit-code
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
if: always()
with:
name: frontier5413-admission
path: |
${{ runner.temp }}/frontier5413/VALIDATION.json
${{ runner.temp }}/frontier5413/PRIMARY-REPLAY.json
${{ runner.temp }}/frontier5413/PROVIDER-REPLAY.json
${{ runner.temp }}/frontier5413/COMPANION-REPLAY.json
${{ runner.temp }}/frontier5413/review-evidence/*.log
${{ runner.temp }}/frontier5413/review-evidence/*.json