8000 Add Destructive Command Guard workflow by zainfathoni · Pull Request #108 · zainfathoni/zainf · GitHub
[go: up one dir, main page]

Skip to content

Add Destructive Command Guard workflow - #108

Merged
zainfathoni merged 1 commit into
mainfrom
chore/add-destructive-command-guard-v0.14.3
Sep 11, 2026
Merged

zainfathoni merged 1 commit into
mainfrom
chore/add-destructive-command-guard-v0.14.3

Conversation

@zainfathoni
Copy link
Copy Markdown
Owner

Summary

  • Add a conservative Destructive Command Guard workflow for repository-wide scan coverage.
  • Pin DCG to v0.14.3 and install the Linux musl binary directly, with SHA-256 verification of the release archive.
  • Keep permissions read-only and fail only on error-severity findings.

Why not the composite action

Previous attempts failed in this repository's GitHub Actions:

The only green implementation was #70's direct-binary install, but it was closed without merging. This PR follows that approach, updated for the current release:

  • Linux x86_64 artifacts are now x86_64-unknown-linux-musl (not x86_64-unknown-linux-gnu)
  • The archive SHA-256 is pinned in the workflow so a swapped GitHub Release cannot run

Validation

  • Local dcg scan --paths . --fail-on error on the source tree (excluding node_modules) reported 0 findings.
  • The workflow file itself extracts 9 commands and reports 0 findings.
  • GitHub Actions DCG jobs from this PR are the remaining check.

Policy (first rollout)

  • Triggers: push and pull_request
  • permissions: contents: read
  • dcg scan --paths . --fail-on error --format pretty
  • No PR comments

Scan the repository on push and pull_request with DCG v0.14.3.
Install the Linux musl binary directly and verify its SHA-256 because
the composite action tags used in #69 and #71 failed in this repo's CI.
Fail only on error-severity findings and keep permissions read-only.

Amp-Thread-ID: https://ampcode.com/threads/T-01a08dca-a80a-701a-86ae-a4ab618f3528
Co-authored-by: Amp <amp@ampcode.com>
@vercel
vercel Bot commented Sep 11, 2026 •
Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
zainf Ready Ready Preview Sep 11, 2026 12:14am UTC

@zainfathoni
zainfathoni merged commit ae44a20 into main Sep 11, 2026
3 of 4 checks passed
@zainfathoni
zainfathoni deleted the chore/add-destructive-command-guard-v0.14.3 branch September 11, 2026 00:14

This branch was successfully deployed

1 active deployment
Preview — 84a3f48c Deployed Sep 11, 2026 by vercel[bot]
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

0