Skip to content

Security hardening: credentials.json gitignore, CI least-privilege, SHA-pin ShellCheck#4

Merged
fidgetcoding merged 4 commits into
mainfrom
fix/security-audit-2026-04
Apr 5, 2026
Merged

Security hardening: credentials.json gitignore, CI least-privilege, SHA-pin ShellCheck#4
fidgetcoding merged 4 commits into
mainfrom
fix/security-audit-2026-04

Conversation

@fidgetcoding
Copy link
Copy Markdown
Owner

Summary

  • Add credentials.json to .gitignore (Google/Firebase credentials file gap)
  • Add permissions: contents: read to lint.yml — prevents CI from having implicit write-all permissions
  • SHA-pin ludeeus/action-shellcheck to full commit hash 94e0aab03ca135d11a35e5bfc14e6746dc56e7e9 (v2.0.0) — prevents tag-based supply chain attack on third-party action

Test plan

  • ShellCheck CI still runs and passes on all .sh files
  • .gitignore correctly excludes credentials.json from tracking
  • No other workflows affected

🤖 Generated with claude-flow

fidgetcoding and others added 4 commits April 4, 2026 20:45
- Replace all explicit missing-file grep args with --include= style to prevent
  exit code 2 false negatives across Checks 14, 18, 19, 20
- Add /safetycheck row to cheat-sheet.md skills table
- Add Step 9 row to step-ordering.md (was missing entirely)

Co-Authored-By: claude-flow <ruv@ruv.net>
…in action

- Add credentials.json to .gitignore (gap identified in security audit)
- Add permissions:contents:read to lint.yml (least-privilege CI)
- SHA-pin ludeeus/action-shellcheck to full commit hash (supply chain hardening)

Co-Authored-By: claude-flow <ruv@ruv.net>
… idempotent links

- Pin SKILL_URL to commit SHA 7b449b6 (prevents rug-pull via mutable main branch)
- Add sha256 checksum verification after SKILL.md download
- Add .github/workflows/security.yml: strict ShellCheck, secret scanning, URL reachability
- Fix step-7d link injection to be idempotent (check for [[project]] before appending)

Co-Authored-By: claude-flow <ruv@ruv.net>
- step-final: convert for-loop-over-find to while-read (SC2044)
- step-final: remove unused HC_ISSUES variable (SC2034)
- update.sh: remove unused RED color variable (SC2034)
- uninstall.sh: replace tilde with $HOME in message strings (SC2088)
- step-1: replace tilde with $HOME in message string (SC2088)

Co-Authored-By: claude-flow <ruv@ruv.net>
@fidgetcoding fidgetcoding merged commit ed9e522 into main Apr 5, 2026
4 checks passed
@fidgetcoding fidgetcoding deleted the fix/security-audit-2026-04 branch April 5, 2026 02:30
fidgetcoding added a commit that referenced this pull request Apr 18, 2026
Security hardening: credentials.json gitignore, CI least-privilege, SHA-pin ShellCheck
fidgetcoding added a commit that referenced this pull request Apr 21, 2026
Security hardening: credentials.json gitignore, CI least-privilege, SHA-pin ShellCheck
fidgetcoding added a commit that referenced this pull request Apr 25, 2026
Security hardening: credentials.json gitignore, CI least-privilege, SHA-pin ShellCheck
fidgetcoding added a commit that referenced this pull request Apr 25, 2026
Security hardening: credentials.json gitignore, CI least-privilege, SHA-pin ShellCheck
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.

1 participant