Skip to content

ci: add GitHub Actions workflows for owner-portal CI and PR validation#46

Open
PranavGadge01 wants to merge 1 commit intoc2siorg:mainfrom
PranavGadge01:ci/github-actions-owner-portal
Open

ci: add GitHub Actions workflows for owner-portal CI and PR validation#46
PranavGadge01 wants to merge 1 commit intoc2siorg:mainfrom
PranavGadge01:ci/github-actions-owner-portal

Conversation

@PranavGadge01
Copy link
Copy Markdown

Summary

Adds GitHub Actions CI/CD workflows for the owner-portal and general PR validation.

Workflows Added

owner-portal-ci.yml

Triggers on push or pull request to main when files inside owner-portal/ change.

  • Sets up Node.js 18 with npm caching
  • Installs dependencies with --legacy-peer-deps
  • Runs production build via npm run build
  • Uploads build artifacts for 7 days

pr-checks.yml

Triggers on every pull request to main.

  • Scans for accidentally committed .env files
  • Scans for hardcoded secrets in source files
  • Fails the PR if either check is violated

Why

Testing

  • Workflow syntax validated
  • Paths filter ensures workflow only runs when owner-portal files change
  • Secret detection covers .js, .jsx, .ts, .tsx files

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