Skip to content

Commit 37dde0b

Browse files
authored
Merge pull request Nullus157#39 from Nemo157/vet-status
Improve vet status job
2 parents 829140b + 8ee8a7e commit 37dde0b

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

vet-status

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
set -euo pipefail
4+
35
tq() {
46
toml2json "supply-chain/$1" | jq -r "$2 | keys | .[]"
57
}
@@ -12,17 +14,20 @@ trusted=($(tq audits.toml '.trusted'))
1214
exempted=($(tq config.toml '.exemptions'))
1315

1416
log() {
15-
title=$1
16-
shift
17+
emoji=$1
18+
title=$2
19+
shift 2
1720
echo
18-
echo "<details><summary>$title: $#</summary>"
21+
echo "<details><summary><h1>$emoji</h1><h2>$title: $#</h2></summary>"
1922
echo
20-
printf ' * %s\n' "$@"
23+
echo '```'
24+
printf '%s\n' "$@"
25+
echo '```'
2126
echo
2227
echo "</details>"
2328
}
2429

25-
log Audited "${audited[@]}"
26-
log Imported "${imported[@]}"
27-
log Trusted "${trusted[@]}"
28-
log Exempted "${exempted[@]}"
30+
log 😍 Audited "${audited[@]}"
31+
log 😄 Imported "${imported[@]}"
32+
log 🙊 Trusted "${trusted[@]}"
33+
log 🙈 Exempted "${exempted[@]}"

0 commit comments

Comments
 (0)