Update nightly schedule to weekdays at 10:30 PM PT and fix security issues#2910
Merged
Merged
Conversation
Job Summary for GradlePull Request :: test-android |
wmathurin
approved these changes
May 29, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #2910 +/- ##
=========================================
Coverage 66.58% 66.58%
Complexity 3108 3108
=========================================
Files 226 226
Lines 17871 17871
Branches 2339 2339
=========================================
+ Hits 11899 11900 +1
Misses 4887 4887
+ Partials 1085 1084 -1
🚀 New features to boost your workflow:
|
wmathurin
reviewed
May 29, 2026
| on: | ||
| schedule: | ||
| - cron: "0 6 * * 2,6" # cron is UTC, this translates to 10 PM PST Mon and Fri. | ||
| - cron: "30 6 * * 2-6" # cron is UTC; 10:30 PM PT every weekday (Mon-Fri). |
Contributor
There was a problem hiding this comment.
Should we do Sunday to Thursday instead (so always followed by a working day the next morning) ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements W-22712082 — Cleanup CI for all Repos.
Schedule change: Nightly tests now run every weekday at 10:30 PM PT (
30 6 * * 2-6UTC), up from the previous Mon/Fri-only cadence. Catches regressions within 1 business day instead of up to 4.Security hardening: All workflows updated to follow the GitHub Actions injection-prevention best practices:
actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1). Closes the supply-chain attack vector where a moving tag could be retargeted.permissions:block added to every workflow with the principle of least privilege:contents: readbaseline,pull-requests: writeonly where Danger ormikepenz/action-junit-reportposts PR comments.secrets: inheritreplaced with explicit secret pass-through at every reusable-workflow caller;on: workflow_call: secrets:blocks now declare exactly which secrets each reusable expects.${{ ... }}shell interpolation inrun:blocks refactored toenv:variables with quoted shell expansions, so attacker-controlled strings cannot break out of the script context.pull_request_targetretained (required for fork PRs to receive secrets) with# zizmor: ignore[dangerous-triggers]and an inline comment documenting the Member Check mitigation.actions/checkoutsteps setwith: persist-credentials: falseto prevent post-step credential exfiltration via.git/config.permissions:on reusable-workflow callers: since the reusable workflows declarepermissions: { contents: read, pull-requests: write }(needed formikepenz/action-junit-reportPR comments), the calling jobs innightly.yamlandpr.yamlnow declare matching permissions explicitly. Without this, GitHub rejects the workflow at startup withstartup_failurebecause a caller's effective permissions cannot be less than the called workflow's declared permissions.After this change,
zizmor --offlinereports 0 High-confidence findings across all four CI workflows.Test plan
python3 yaml.safe_load,actionlint -shellcheck=,zizmor --offline. All clean.brandonpage/SalesforceMobileSDK-Android#31) targeting the samecleanup-ci-w22712082branch as this PR. The test PR triggers the new workflows against a real source change inSalesforceAnalytics. No regressions observed — see linked PR for run details.permissions:blocks match the team's expected privilege levels for each workflow.🤖 Generated with Claude Code