redlinegate 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/README.md +22 -6
  2. package/dist/bin/redline.js +101 -11
  3. package/dist/bin/redline.js.map +1 -1
  4. package/dist/commands/init.js +94 -23
  5. package/dist/commands/init.js.map +1 -1
  6. package/dist/commands/remove.js +3 -1
  7. package/dist/commands/remove.js.map +1 -1
  8. package/dist/commands/verify.js +82 -2
  9. package/dist/commands/verify.js.map +1 -1
  10. package/dist/config/redline-json.js +45 -1
  11. package/dist/config/redline-json.js.map +1 -1
  12. package/dist/detect/existing.js +151 -0
  13. package/dist/detect/existing.js.map +1 -0
  14. package/dist/exempt/parse.js +8 -1
  15. package/dist/exempt/parse.js.map +1 -1
  16. package/dist/platforms/azure/install.js +8 -4
  17. package/dist/platforms/azure/install.js.map +1 -1
  18. package/dist/platforms/azure/verify.js +6 -0
  19. package/dist/platforms/azure/verify.js.map +1 -1
  20. package/dist/platforms/github/install.js +88 -10
  21. package/dist/platforms/github/install.js.map +1 -1
  22. package/dist/platforms/github/preflight.js +63 -0
  23. package/dist/platforms/github/preflight.js.map +1 -0
  24. package/dist/platforms/github/verify.js +62 -5
  25. package/dist/platforms/github/verify.js.map +1 -1
  26. package/dist/platforms/types.js +4 -0
  27. package/dist/platforms/types.js.map +1 -1
  28. package/dist/policy/diff.js +26 -9
  29. package/dist/policy/diff.js.map +1 -1
  30. package/dist/render/contexts.js +39 -0
  31. package/dist/render/contexts.js.map +1 -0
  32. package/dist/render/profile.js +44 -10
  33. package/dist/render/profile.js.map +1 -1
  34. package/dist/render/standards.js +2 -0
  35. package/dist/render/standards.js.map +1 -1
  36. package/dist/render/vendors.js +5 -1
  37. package/dist/render/vendors.js.map +1 -1
  38. package/dist/ui/facts.js +82 -0
  39. package/dist/ui/facts.js.map +1 -0
  40. package/dist/ui/prompt.js +201 -0
  41. package/dist/ui/prompt.js.map +1 -0
  42. package/dist/ui/tty.js +243 -0
  43. package/dist/ui/tty.js.map +1 -0
  44. package/dist/ui/wizard.js +179 -0
  45. package/dist/ui/wizard.js.map +1 -0
  46. package/package.json +10 -1
  47. package/platforms/azure/gate-template-github.yml +152 -0
  48. package/platforms/azure/gate-template.yml +59 -6
  49. package/scripts/check-pins.mjs +84 -1
  50. package/standards/contexts/speckit.md +22 -0
  51. package/standards/contexts/tmf.md +25 -0
  52. package/standards/manifest.json +1 -1
  53. package/templates/redline.yml +5 -9
  54. package/workflows/dashboard.yml +1 -1
  55. package/workflows/redline-collect.yml +1 -1
  56. package/workflows/redline-gate.yml +10 -3
  57. package/workflows/seed-canary.yml +2 -2
  58. package/workflows/weekly-digest.yml +1 -1
@@ -39,7 +39,7 @@ jobs:
39
39
  # command line is visible in the process table.
40
40
  GH_TOKEN: ${{ secrets.REDLINE_ORG_READ_TOKEN }}
41
41
  run: |
42
- npx --yes "redlinegate@0.0.1" metrics collect \
42
+ npx --yes "redlinegate@0.0.2" metrics collect \
43
43
  --org "${{ github.repository_owner }}" \
44
44
  --days "${{ inputs.days || '8' }}" \
45
45
  --out data
@@ -133,7 +133,7 @@ jobs:
133
133
  BASE: ${{ github.event.pull_request.base.sha }}
134
134
  HEAD: ${{ github.event.pull_request.head.sha }}
135
135
  RUNG: ${{ inputs.rung }}
136
- REDLINE_CLI_VERSION: '0.0.1'
136
+ REDLINE_CLI_VERSION: '0.0.2'
137
137
  run: |
138
138
  set -euo pipefail
139
139
  # Three dots: the diff against the merge base, not against the tip of
@@ -179,7 +179,14 @@ jobs:
179
179
  head: ${{ github.event.pull_request.head.sha }}
180
180
  # verified only: `unknown` produces false positives, and this is a blocking
181
181
  # check. Unverified candidates are caught by GHAS secret scanning instead.
182
- extra_args: --results=verified --fail
182
+ #
183
+ # No `--fail` here. The action's own entrypoint already passes it before
184
+ # appending extra_args, and trufflehog rejects a repeated flag outright —
185
+ # `flag 'fail' cannot be repeated` — so the scan never ran at all. This
186
+ # job is outside the enforcement ladder and outside label exemption, so
187
+ # that failure blocked every pull request in every onboarded repository
188
+ # for a reason no author could act on or waive.
189
+ extra_args: --results=verified
183
190
 
184
191
  gate:
185
192
  # Aggregate. The branch ruleset requires the check "redline-gate / gate".
@@ -201,7 +208,7 @@ jobs:
201
208
  PR_BODY: ${{ github.event.pull_request.body }}
202
209
  # Pinned, not @latest: the gate's behaviour must not change under a
203
210
  # repository because a release happened overnight.
204
- REDLINE_CLI_VERSION: '0.0.1'
211
+ REDLINE_CLI_VERSION: '0.0.2'
205
212
  run: |
206
213
  set -euo pipefail
207
214
 
@@ -155,9 +155,9 @@ jobs:
155
155
  run: |
156
156
  set -euo pipefail
157
157
  mkdir -p "$GITHUB_WORKSPACE/scores"
158
- npx --yes "redlinegate@0.0.1" metrics score-seeds --repo "$TARGET_REPO" --pr "$PR" --json \
158
+ npx --yes "redlinegate@0.0.2" metrics score-seeds --repo "$TARGET_REPO" --pr "$PR" --json \
159
159
  > "$GITHUB_WORKSPACE/scores/$(echo "$TARGET_REPO" | tr / -).json" || echo "score-seeds exited non-zero"
160
- npx --yes "redlinegate@0.0.1" metrics score-seeds --repo "$TARGET_REPO" --pr "$PR" \
160
+ npx --yes "redlinegate@0.0.2" metrics score-seeds --repo "$TARGET_REPO" --pr "$PR" \
161
161
  | tee -a "$GITHUB_STEP_SUMMARY" || true
162
162
 
163
163
  - name: Close the canary pull request
@@ -45,7 +45,7 @@ jobs:
45
45
 
46
46
  - name: Build Adaptive Card
47
47
  run: |
48
- npx --yes "redlinegate@0.0.1" metrics digest \
48
+ npx --yes "redlinegate@0.0.2" metrics digest \
49
49
  --org "${{ github.repository_owner }}" \
50
50
  --days 7 \
51
51
  --open-prs "${{ steps.prs.outputs.open }}" \