Skip to content

Commit 101721f

Browse files
committed
ci: refresh HOL workflow action refs
1 parent 95a153e commit 101721f

1 file changed

Lines changed: 73 additions & 0 deletions

File tree

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Codex Plugin Quality Gate
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
scan:
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
os: [ubuntu-latest, windows-latest]
20+
runs-on: ${{ matrix.os }}
21+
timeout-minutes: 10
22+
permissions:
23+
contents: read
24+
steps:
25+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
26+
- name: Codex plugin scanner
27+
uses: hashgraph-online/hol-codex-plugin-scanner-action@df9c8a41eefff30cc430344c2a32c7a96bf37645 # v1
28+
with:
29+
# The pinned action resolves .codex-plugin/plugin.json from the repo root.
30+
plugin_dir: "."
31+
min_score: "70"
32+
33+
scan-regression:
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
include:
38+
- os: ubuntu-latest
39+
fixture: good
40+
plugin_dir: ".github/plugin-scanner-fixtures/good"
41+
expect_outcome: success
42+
- os: ubuntu-latest
43+
fixture: bad
44+
plugin_dir: ".github/plugin-scanner-fixtures/bad"
45+
expect_outcome: failure
46+
- os: windows-latest
47+
fixture: good
48+
plugin_dir: ".github/plugin-scanner-fixtures/good"
49+
expect_outcome: success
50+
- os: windows-latest
51+
fixture: bad
52+
plugin_dir: ".github/plugin-scanner-fixtures/bad"
53+
expect_outcome: failure
54+
runs-on: ${{ matrix.os }}
55+
timeout-minutes: 10
56+
permissions:
57+
contents: read
58+
steps:
59+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
60+
- name: Codex plugin scanner regression
61+
id: scan
62+
continue-on-error: true
63+
uses: hashgraph-online/hol-codex-plugin-scanner-action@df9c8a41eefff30cc430344c2a32c7a96bf37645 # v1
64+
with:
65+
plugin_dir: ${{ matrix.plugin_dir }}
66+
min_score: "70"
67+
- name: Assert fixture outcome
68+
shell: bash
69+
run: |
70+
if [ "${{ steps.scan.outcome }}" != "${{ matrix.expect_outcome }}" ]; then
71+
echo "Expected fixture '${{ matrix.fixture }}' to '${{ matrix.expect_outcome }}', got '${{ steps.scan.outcome }}'."
72+
exit 1
73+
fi

0 commit comments

Comments
 (0)