fix(workflows): automate weekly SHA staleness check with issue creation#975
Open
PratikWayase wants to merge 1 commit intomicrosoft:mainfrom
Open
fix(workflows): automate weekly SHA staleness check with issue creation#975PratikWayase wants to merge 1 commit intomicrosoft:mainfrom
PratikWayase wants to merge 1 commit intomicrosoft:mainfrom
Conversation
30 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This PR automates the weekly SHA staleness security check in the GitHub workflow.
Previously, the sha-staleness-check workflow only executed the Test-SHAStaleness.ps1 script but did not create any actionable follow-up when stale dependencies were detected.
This update improves the workflow by:
Running the Test-SHAStaleness.ps1 script automatically during the weekly security maintenance workflow.
Parsing the generated sha-staleness-results.json file to detect stale GitHub Actions or tools.
Automatically creating or updating a tracking GitHub issue when stale dependencies exceed the defined threshold.
Preventing duplicate issues by updating an existing open issue if one already exists.
Automatically closing the issue when no stale dependencies are detected in future runs.
This ensures that outdated GitHub Action SHAs and security tools are continuously monitored and tracked without requiring manual checks.
Related Issue(s)
Fixes #268
Type of Change
Code & Documentation
Infrastructure & Configuration
AI Artifacts
Other
Testing Checklist
Required Checks
Required Automated Checks
The following validation commands must pass before merging:
npm run lint:mdnpm run spell-checknpm run lint:frontmatternpm run validate:skillsnpm run lint:md-linksnpm run lint:psnpm run plugin:generateSecurity Considerations
Additional Notes
This workflow improves long-term repository security maintenance by automatically detecting stale SHA pins and guiding maintainers to update them when necessary.