Skip to content

CI/CD#35

Open
ohadschn wants to merge 34 commits intoyuvalha96:mainfrom
ohadschn:main
Open

CI/CD#35
ohadschn wants to merge 34 commits intoyuvalha96:mainfrom
ohadschn:main

Conversation

@ohadschn
Copy link
Collaborator

@ohadschn ohadschn commented Jan 17, 2026

@yuvalha96 - the checks in this PR supersede client / test-npm and server / test-npm, so please remove them from the repo's required checks (and replace with the modified checks below) so that we can merge this one.

You can see the deployed app in the different envs:

  1. Test: https://qbsafe-test.azurewebsites.net/
  2. Stage (CD): https://qbsafe-stage.azurewebsites.net/
  3. Prod: https://qbsafe.azurewebsites.net/

prod doesn't need CORS since the client is served from the same domain as the API
* limit CD workflow_run trigger to non-for, non-pr, main branch only

* debug GH context
only branch filter is necessary as explained in the comment
The additional  filters were either redundant or incorrect:
1. `github.event_name` is always `workflow_run` anyway
2. `workflow_run.event` can't be 'pull_request' because such a run's branch would never match `main` (see comment)
3. `github.event.workflow_run.head_repository.fork` is true for this repo because it's a fork in itself
Extra safeguard against pwn requests
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