Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Sep 13, 2025

This PR implements security best practices by pinning GitHub Actions dependencies to specific commit SHAs, updates the deprecated wrapper validation action, and optimizes the Dependabot update schedule as requested in the issue.

Changes Made

GitHub Actions Pinning

All GitHub Actions dependencies have been pinned with their commit SHAs and inline version comments for easy tracking:

  • actions/setup-java@v4c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
  • actions/checkout@v508c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
  • gradle/wrapper-validation-action@v3gradle/actions/wrapper-validation@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3.5.0
  • gradle/actions/setup-gradle@v4ed408507eac070d1f99cc633dbcf757c94c7933a # v4.4.3
  • gradle/gradle-build-action@v3ac2d340dc04d9e1113182899e983b5400c17cda1 # v3.5.0
  • dependabot/fetch-metadata@v208eff52bf64351f401fb50d4972fa95b9f2c2d1b # v2.4.0

Wrapper Validation Action Updates

  • Updated deprecated action: Replaced gradle/wrapper-validation-action with gradle/actions/wrapper-validation in the dedicated validation workflow
  • Optimized CI workflow: Removed redundant wrapper validation step from ci.yml since setup-gradle@v4 automatically includes wrapper validation
  • Maintained separation of concerns: Kept dedicated gradle-wrapper-validation.yml workflow for explicit validation

SHA Authenticity Verification

The commit SHAs can be verified at the following URLs:

Dependabot Configuration Updates

Updated .github/dependabot.yml to:

  • Change GitHub Actions update schedule from daily to weekly
  • Group all GitHub Actions dependencies into a single "github-actions" group
  • This will generate one consolidated PR per week for all GitHub Actions updates instead of individual PRs

Benefits

  • Enhanced Security: Pinned SHAs prevent supply chain attacks through compromised action versions
  • Improved Maintainability: Version comments make it easy to track what version each SHA represents
  • Reduced PR Noise: Weekly grouped updates instead of daily individual updates
  • Modernized Actions: Updated to use current, supported wrapper validation action
  • Optimized Performance: Removed duplicate validation steps while maintaining security
  • Consistency: Aligns with security practices used in other assertj repositories

All workflows have been validated and builds pass successfully.

Fixes #230.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copy link
Contributor Author

Copilot AI commented Sep 13, 2025

@scordio 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

…t config

Co-authored-by: scordio <26772046+scordio@users.noreply.github.com>
Copilot AI changed the title [WIP] Pin GitHub Actions dependencies, switch to weekly update schedule Pin GitHub Actions dependencies, switch to weekly update schedule Sep 13, 2025
Copilot AI requested a review from scordio September 13, 2025 08:46
Co-authored-by: scordio <26772046+scordio@users.noreply.github.com>
Copilot AI changed the title Pin GitHub Actions dependencies, switch to weekly update schedule Pin GitHub Actions dependencies, update wrapper validation action, optimize workflows Sep 13, 2025
Copilot AI requested a review from scordio September 13, 2025 09:11
@scordio scordio marked this pull request as ready for review September 13, 2025 10:18
@scordio scordio merged commit c6d71bc into main Sep 13, 2025
30 checks passed
@scordio scordio deleted the copilot/fix-230 branch September 13, 2025 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pin GitHub Actions dependencies, switch to weekly update schedule

2 participants