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.
This pull request updates the
.github/workflows/windows_build.yml
file to enhance build provenance generation, improve debugging, and update dependencies. It introduces new steps for handling SLSA provenance files, adds debugging for GitHub token and permissions, and upgrades the SLSA verifier version. Additionally, it includes fallback mechanisms for provenance generation and verification to improve reliability.Enhancements to Build Provenance and Verification:
actions/attest-build-provenance@v2.3.0
action, ensuring provenance is created for the build artifacts ([.github/workflows/windows_build.ymlR107-R116](https://github.com/ArduPilot/MethodicConfigurator/pull/468/files#diff-4f99d7a5ccc527af64c0d4fca4d4065b5400c04c60f188181d532fcbc0a5af8eR107-R116)
).[.github/workflows/windows_build.ymlL106-R441](https://github.com/ArduPilot/MethodicConfigurator/pull/468/files#diff-4f99d7a5ccc527af64c0d4fca4d4065b5400c04c60f188181d532fcbc0a5af8eL106-R441)
).[.github/workflows/windows_build.ymlL106-R441](https://github.com/ArduPilot/MethodicConfigurator/pull/468/files#diff-4f99d7a5ccc527af64c0d4fca4d4065b5400c04c60f188181d532fcbc0a5af8eL106-R441)
).Debugging and Permissions:
[.github/workflows/windows_build.ymlR84-R98](https://github.com/ArduPilot/MethodicConfigurator/pull/468/files#diff-4f99d7a5ccc527af64c0d4fca4d4065b5400c04c60f188181d532fcbc0a5af8eR84-R98)
).Dependency Updates:
v2.5.1
tov2.7.0
and added verification for successful downloads ([.github/workflows/windows_build.ymlL106-R441](https://github.com/ArduPilot/MethodicConfigurator/pull/468/files#diff-4f99d7a5ccc527af64c0d4fca4d4065b5400c04c60f188181d532fcbc0a5af8eL106-R441)
).Reliability Improvements:
echo
commands withOut-File
to ensure consistent file encoding and appending behavior ([.github/workflows/windows_build.ymlL106-R441](https://github.com/ArduPilot/MethodicConfigurator/pull/468/files#diff-4f99d7a5ccc527af64c0d4fca4d4065b5400c04c60f188181d532fcbc0a5af8eL106-R441)
).These changes collectively improve the security, reliability, and maintainability of the Windows build workflow.