You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suspect the reason was to avoid any ambiguity about which specific version was built. While the GITHUB_SHA and GITHUB_REF are set to the default branch, it seems conceivable that builds check out arbitrary branches during the workflow. Then again, it's possible to do that for the other events too.
I have no objection to adding it. It seems that the semantics are reasonably clear.
Right. I think schedule events are triggered on the default branch at HEAD so we would be presuming it was built from there but I think you're right it's not unlikely that someone would build from an arbitrary commit. However, from a technical perspective this is the same as how all other events work.
I just ran into this as part of tests, so there isn't an end user need for this yet. I'll let it stew a bit before sending a PR to add it.
Late, but this question got an answer from data rather than from argument.
I measured, across 298 npm packages twice a week apart, whether the commit an attestation names actually contains the published version. It often does not — and the split is not by event type. 15 of 23 cases are on workflow_dispatch, which is supported. The cause is projects creating the version-bump commit inside the publishing run, which any trigger permits.
So @MarkLodato's hedge — "it's possible to do that for the other events too" — and @ianlewis's "from a technical perspective this is the same as how all other events work" both hold up. Whatever the case for adding schedule, the ambiguity argument does not distinguish it from the four already supported. Written up in actions/buildtypes#2.
Activity
MarkLodato commentedon Jun 2, 2023
I suspect the reason was to avoid any ambiguity about which specific version was built. While the
GITHUB_SHAandGITHUB_REFare set to the default branch, it seems conceivable that builds check out arbitrary branches during the workflow. Then again, it's possible to do that for the other events too.I have no objection to adding it. It seems that the semantics are reasonably clear.
ianlewis commentedon Jun 2, 2023
Right. I think
scheduleevents are triggered on the default branch at HEAD so we would be presuming it was built from there but I think you're right it's not unlikely that someone would build from an arbitrary commit. However, from a technical perspective this is the same as how all other events work.I just ran into this as part of tests, so there isn't an end user need for this yet. I'll let it stew a bit before sending a PR to add it.
roshcompanylabs commentedon Oct 15, 2026
Late, but this question got an answer from data rather than from argument.
I measured, across 298 npm packages twice a week apart, whether the commit an attestation names actually contains the published version. It often does not — and the split is not by event type. 15 of 23 cases are on
workflow_dispatch, which is supported. The cause is projects creating the version-bump commit inside the publishing run, which any trigger permits.So @MarkLodato's hedge — "it's possible to do that for the other events too" — and @ianlewis's "from a technical perspective this is the same as how all other events work" both hold up. Whatever the case for adding
schedule, the ambiguity argument does not distinguish it from the four already supported. Written up in actions/buildtypes#2.