Security: Pin action SHAs and add explicit permissions #12
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
This PR resolves GitHub Security alerts by implementing workflow security best practices:
contents: read)Security Improvements
Explicit Permissions
All jobs now have explicit permission declarations following the principle of least privilege:
validate-compose:contents: readbuild-moodle-image:contents: read,packages: writetest-stack-startup:contents: readsecurity-scan:contents: readmarkdown-lint:contents: readAction SHA Pinning
All actions are now pinned to full commit SHAs to prevent supply chain attacks:
11bd71901bbe5b1630ceea73d27597364c9af683b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a274a5d142397b4f367a81961eba4e8cd7edddf772902fa8c0b3dc0d3bba63c0d8ea8a87b5be5c08e94f58ea79222b3b9dc2c8bbdd6debcef730109a756e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d882b32f7aaebcf01d06b69f1ec84a31fc90eb416aTesting
References
Resolves GitHub Security alerts for workflow configuration.