-
Notifications
You must be signed in to change notification settings - Fork 15.1k
chore: Update outdated GitHub Actions versions #1676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Update outdated GitHub Actions versions #1676
Conversation
|
@microsoft-github-policy-service agree |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates GitHub Actions used in the repository’s workflows to newer major versions, aiming to keep CI automation current and compatible.
Changes:
- Bump
actions/staletov10in the stale issues/PRs workflow. - Bump
actions/checkouttov6in the link checker and Azure Static Web Apps workflows. - Bump
peter-evans/create-issue-from-filetov6in the link checker workflow.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
.github/workflows/stale.yml |
Updates actions/stale major version used to mark items stale. |
.github/workflows/links.yml |
Updates checkout and issue-creation actions for scheduled link checking. |
.github/workflows/azure-static-web-apps-ashy-river-0debb7803.yml |
Updates checkout action in the Azure Static Web Apps CI/CD workflow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| uses: Azure/static-web-apps-deploy@v1 | ||
| with: | ||
| azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ASHY_RIVER_0DEBB7803 }} | ||
| repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) |
Copilot
AI
Feb 6, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor spelling/style: the comment says “Github integrations”; elsewhere GitHub is typically capitalized as “GitHub”. Consider updating for consistency.
| repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for GitHub integrations (i.e. PR comments) |
| steps: | ||
| - uses: actions/stale@v6 | ||
| - uses: actions/stale@v10 | ||
| with: |
Copilot
AI
Feb 6, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
steps: expects its list items to be indented underneath it. As written, - uses: actions/stale@v10 is aligned with steps: which makes the workflow YAML invalid and will prevent this workflow from running. Indent the step entries (and their nested keys) by two additional spaces under steps:.
See below for a potential fix:
- uses: actions/stale@v10
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue has not seen any action for a while! Closing for now, but it can be reopened at a later date.'
stale-pr-message: 'This PR has not seen any action for a while! Closing for now, but it can be reopened at a later date.'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
days-before-close: -1
| on: workflow_dispatch | ||
|
|
||
| jobs: | ||
| build_and_deploy_job: | ||
| if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') | ||
| runs-on: ubuntu-latest |
Copilot
AI
Feb 6, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workflow is only triggered by workflow_dispatch, but both jobs are gated by if: conditions that only allow push / pull_request events. As a result, a manual run will skip all jobs and the workflow effectively does nothing. Update the on: block to include push/pull_request, or adjust/remove the job-level if: conditions to match the intended trigger.
Description
This PR updates outdated GitHub Action versions to ensure compatibility and stability. The changes include updating
actions/checkoutfrom version v3 to v6 in two workflows, updatingactions/checkoutfrom v4 to v6 in another workflow, updatingactions/stalefrom v6 to v10, and updatingpeter-evans/create-issue-from-filefrom v5 to v6.Type of change