Skip to content

Conversation

@riatzukiza
Copy link

addresses #3415

- add job-level if: to run only on release/workflow_dispatch
- add Resolve release tag step (supports manual input + last release fallback)
- harden MpCmdRun.exe resolution on windows-latest

This prevents PR runs from failing when github.event.release.tag_name is undefined and makes manual runs usable.
- Add PR/push jobs for ClamAV (Linux) and Windows Defender (Windows)
- Keep release/workflow_dispatch jobs for scanning published assets
- No secret usage in PR/push jobs; uses repo/build outputs or repo archive
- Upload PR scan payload/logs as artifacts
- Detect common stacks and attempt install+build for each
- Package best available outputs (dist/build/target/release) for scanning
- Keep release/manual job unchanged
- Enable corepack; prep yarn if yarn.lock present
- Make Node/Rust/Go builds best-effort (won't fail the job)
- Use tar.gz instead of zip to avoid zip dependency
- Keep scanning entire dist-pr directory with --scan-archive=yes
- Detect bun.lockb and use oven-sh/setup-bun@v1
- Run `bun install` + `bun run build` before packaging
- Keep Node/Rust/Go heuristics as fallback
… shell

- Replace oven-sh/setup-bun with curl installer and PATH export
- Drop pnpm/action-setup; use corepack to activate pnpm/yarn
- Replace dtolnay/rust-toolchain with rustup bootstrap
- Add defaults.run.shell: bash; small permissions tweaks
- Keep Go using first‑party actions/setup-go@v5
- Include schedule in release job guard to avoid skipped runs
… zip contention)

- owasp: use dependency-check/[email protected] and cache DC data
- clamav: install freshclam db before clamscan; package build outputs for PRs; scan release assets
- defender: handle zip handle contention; scan release assets and surface detections
…args --out); avoid zip handle contention by using unique filename and glob for scan/upload
…:riatzukiza/opencode into devops/3415-windows-virus-false-positive
…o bun; stage outputs; extract before clamscan for real file counts
… with bsdtar + retries; then Move-Item into dist-pr
…kip policy; attach detections JSON in artifact
…tion), package build output and scan with ClamAV
… outputs, extract + scan with ClamAV, upload logs + payload
…e.zip; scan extracted directory; upload detections
… PR/release/dispatch share one build via composite; deprecate old PR/Release files
…sent); package dist/build if present else repo minus heavy dirs
@riatzukiza riatzukiza marked this pull request as ready for review October 25, 2025 02:22
@riatzukiza riatzukiza marked this pull request as draft October 25, 2025 05:28
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