Skip to content

security: standardize secret scanning on TruffleHog - #38

Merged
hyperpolymath merged 8 commits into
mainfrom
chore/ts-to-as-step-1-build-integration
Jun 11, 2026
Merged

security: standardize secret scanning on TruffleHog#38
hyperpolymath merged 8 commits into
mainfrom
chore/ts-to-as-step-1-build-integration

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Standardizing on TruffleHog.

- Swap extension.ts for extension.affine (landed in #19)
- Update package.json main to .out/extension.cjs
- Update compile script to use affinescript compiler
- Remove tsc-specific configuration and devDependencies

Step 1 (follow-up) of the TS->AS migration campaign (#240).
- C001: CodeQL language fixes
- C002: License identifier standardization
- C003: Outdated actions audit
- C004: Pin standards refs to SHA 861b5e9
- C005: Add workflow-level permissions
@hyperpolymath
hyperpolymath enabled auto-merge June 11, 2026 21:34
Comment thread .claude/CLAUDE.md
@@ -1,3 +1,7 @@
<!--
Comment thread .claude/CLAUDE.md
@@ -1,3 +1,7 @@
<!--
Comment thread .claude/CLAUDE.md
@@ -1,3 +1,7 @@
<!--
Comment thread .claude/CLAUDE.md
@@ -1,3 +1,7 @@
<!--
Comment thread .claude/CLAUDE.md
@@ -1,3 +1,7 @@
<!--
Comment thread .claude/CLAUDE.md
@@ -1,3 +1,7 @@
<!--
@github-actions

Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 51 issues detected

Severity Count
🔴 Critical 0
🟠 High 10
🟡 Medium 41
View findings
[
  {
    "reason": "Backup file in root",
    "type": "stale",
    "file": "ECOSYSTEM.scm.bak",
    "action": "delete",
    "rule_module": "root_hygiene",
    "severity": "medium"
  },
  {
    "reason": "Backup file in root",
    "type": "stale",
    "file": "META.scm.bak",
    "action": "delete",
    "rule_module": "root_hygiene",
    "severity": "medium"
  },
  {
    "reason": "Merge artifact in root",
    "type": "stale",
    "file": "SPEC.core.scm.orig",
    "action": "delete",
    "rule_module": "root_hygiene",
    "severity": "medium"
  },
  {
    "reason": "Action trufflesecurity/trufflehog@main needs attention",
    "type": "unpinned_action",
    "file": "secret-scanner.yml",
    "action": "pin_sha",
    "rule_module": "workflow_audit",
    "severity": "high"
  },
  {
    "reason": "codeql.yml lists `language: javascript-typescript` but the repo has no source files in any CodeQL-scannable language. The analyze job will exit 'no source files' on every run. Switch the matrix to `actions` (which scans workflow files — every repo has those).",
    "type": "codeql_language_matrix_mismatch",
    "file": "codeql.yml",
    "action": "switch_codeql_matrix_to_actions",
    "rule_module": "workflow_audit",
    "severity": "high"
  },
  {
    "reason": "Issue in secret-scanner.yml",
    "type": "missing_timeout_minutes",
    "file": "secret-scanner.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in scorecard-enforcer.yml",
    "type": "scorecard_publish_with_run_step",
    "file": "scorecard-enforcer.yml",
    "action": "split_scorecard_publish_job",
    "rule_module": "workflow_audit",
    "severity": "high"
  },
  {
    "reason": "Issue in codeql.yml",
    "type": "codeql_missing_actions_language",
    "file": "codeql.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "binary_to_term without :safe option -- deserialization attack (1 occurrences, CWE-502)",
    "type": "elixir_send_unsanitised",
    "file": "/home/runner/work/phronesis/phronesis/lib/phronesis/compiler.ex",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "high"
  },
  {
    "reason": "Nominal-only SAST in phronesis: codeql.yml language matrix contains no language present in the repo and lacks `actions`, so CodeQL records zero results on every commit. Remediation: set the CodeQL matrix to `language: actions`.",
    "type": "StaticAnalysis",
    "file": "/home/runner/work/phronesis/phronesis",
    "action": "auto_fix",
    "rule_module": "scorecard",
    "severity": "medium",
    "remediation": "Add CodeQL or equivalent SAST workflow.",
    "scorecard_check": "SAST"
  }
]

Powered by Hypatia Neurosymbolic CI/CD Intelligence

@hyperpolymath
hyperpolymath merged commit fcf5b08 into main Jun 11, 2026
6 of 7 checks passed
@hyperpolymath
hyperpolymath deleted the chore/ts-to-as-step-1-build-integration branch June 11, 2026 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants