Skip to content

fix(security): resolve OpenSSF Scorecard token permissions and pin dependency SHAs - #31

Merged
divyanshujethi merged 1 commit into
mainfrom
fix/scorecard-security-hardening
Nov 7, 2026
Merged

divyanshujethi merged 1 commit into
mainfrom
fix/scorecard-security-hardening

Conversation

@divyanshujethi

Copy link
Copy Markdown
Collaborator

Summary of Changes

Remediates all OpenSSF Scorecard Code Scanning security alerts across the repository:

1. Token-Permissions Hardening (Alerts #33, #34, #35, #36, #37, #38, #92)

  • Added top-level permissions: read-all across all 12 GitHub Actions workflow files.
  • Confined write permissions strictly to specific jobs that require them (id-token: write, packages: write, etc.).
  • Removed contents: write from
    elease.yml:dual-publish, adhering strictly to least privilege token access.

2. Pinned Dependencies by Commit SHA & Digest (Alerts #39-#74, #77-#81, #87-#91)

3. Dockerfile Base Image Pinning (Alerts #75, #76)

  • Pinned
    ode:22-slim and gcr.io/distroless/nodejs20-debian12:nonroot base images to immutable @sha256: digest hashes.

4. Vulnerabilities Configuration (Alert #86)

  • Added osv-scanner.toml to document acknowledged offline dev vulnerabilities per OpenSSF guidelines.

…pendency SHAs

- Enforce least privilege top-level permissions: read-all across all 12 workflows
- Pin all GitHub Action dependencies to full 40-character commit SHAs with inline version tags
- Pin multi-arch container base images in Dockerfile to immutable sha256 digests
- Remove contents: write from release.yml dual-publish job to eliminate elevated write permissions
- Replace unpinned npm/pip commands with pnpm install --frozen-lockfile and standard setuptools build
- Add osv-scanner.toml to document acknowledged offline dev vulnerabilities per OpenSSF guidelines
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

👋 Thanks for opening this Pull Request, @divyanshujethi!

Thank you for contributing to AgentShield! 🛡️

Here is what happens next:

  1. 🧪 Automated Security Gate: Our CI workflow (pr-gate.yml) audits your diff for accidental credential exposure and runs test suites.
  2. 🔍 Code & Security Review: A maintainer from @RitualDev-Lab will review your changes shortly.
  3. 🌟 Contributor Recognition: Once merged, you'll be featured on our contributors list!

💡 Tip: Make sure secrets/mock API keys in tests are synthetic/redacted and tests pass locally (pnpm test).

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

🛡️ AgentShield Pull Request Security Audit

✅ Security Gate Passed — No Exposed Secrets Detected

  • Files Audited: 16
  • Commit Evaluated: fb8eb41
  • Status: Diff is clean. Zero-leak credential policy verified for autonomous AI & developer tools.

AgentShield: OWASP LLM06 Compliant


Protected by AgentShield — Zero-Leak Security for AI Agents & Engineering Teams.

@divyanshujethi
divyanshujethi merged commit 297418b into main Nov 7, 2026
11 checks passed
@divyanshujethi
divyanshujethi deleted the fix/scorecard-security-hardening branch November 7, 2026 19:03
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