pgjdbc/pgjdbc GitHub issues and pull requests (mirror)
help / color / mirror / Atom feedFrom: vlsi (@vlsi) <[email protected]>
To: pgjdbc/pgjdbc <[email protected]>
Subject: [pgjdbc/pgjdbc] PR #4085: ci: opt-in scheduled workflows via ENABLE_SCHEDULED_JOBS repo variable
Date: Thu, 21 May 2026 08:47:11 +0000
Message-ID: <[email protected]> (raw)
## Summary
- Forks inherit the `schedule:` triggers from `codeql.yml`, `omni.yml`, and `ossf-scorecard.yaml`. They burn CI minutes and produce failure notifications even though fork owners typically do not want the recurring runs.
- Gate scheduled events on a repository variable `ENABLE_SCHEDULED_JOBS`. Cron-triggered jobs only run when the variable is set to `true`. Other triggers (`push`, `pull_request`, `workflow_dispatch`, `branch_protection_rule`) are unchanged.
- To keep the cron schedule active in this repo, a maintainer needs to set `ENABLE_SCHEDULED_JOBS=true` under **Settings → Secrets and variables → Actions → Variables**.
## Implementation
The condition used on the relevant jobs:
```yaml
if: github.event_name != 'schedule' || vars.ENABLE_SCHEDULED_JOBS == 'true'
```
- `codeql.yml` — added to job `analyze`.
- `omni.yml` — added to `matrix_prep` (job `test` skips automatically via `needs:`) and to `test-pg-head`.
- `ossf-scorecard.yaml` — combined with the existing default-branch guard via `&&`.
## Test plan
- [x] Set `ENABLE_SCHEDULED_JOBS=true` in repo variables and verify the next nightly Omni run and weekly CodeQL/Scorecard runs fire.
- [x] Confirm a `push`/`pull_request` to `master` still triggers `codeql` and `ossf-scorecard`.
- [ ] Confirm `workflow_dispatch` of `omni` still works regardless of the variable.
- [ ] Verify a fork without the variable no longer runs the cron jobs.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: github://pgjdbc/pgjdbc
Cc: [email protected], [email protected]
Subject: Re: [pgjdbc/pgjdbc] PR #4085: ci: opt-in scheduled workflows via ENABLE_SCHEDULED_JOBS repo variable
In-Reply-To: <<[email protected]>>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox