Fix workflow timestamp check to fail on outdated lock files #8346
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.
The
check_workflow_timestamp_api.cjsscript detects when a workflow.mdsource file is newer than its compiled.lock.ymlfile, but was only logging an error annotation without failing the step. This allowed workflows to execute with stale configurations.Changes
core.error()withcore.setFailed()in timestamp checkExample
When a workflow source is modified after its lock file:
The activation job now properly fails with:
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/user/usr/bin/gh gh api user --jq .login runs/20251231-194528-10342/test-2758341824/.githremote.origin.url --jq /bin/sh g_.a(http block)/usr/bin/gh gh api user --jq .login e-github-app-token.git e-github-app-token.git /usr/bin/git l main -lang=go1.25 git -C k/gh-aw/gh-aw/.github/workflows config e/git-remote-https l -c=4 -nolocalimports e/git-remote-https(http block)/usr/bin/gh gh api user --jq .login tags/v6 -test.v=true 96c3ed8687754408aeaae6746a775d98956/log.json -test.run=^Test(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.