Skip to content

Commit

Permalink
Actions: replace ubuntu-latest with supported runners
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleecodes committed Jan 19, 2025
1 parent 8545452 commit a32a04f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
actions: read
contents: read
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/community-issue-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: Issue Comment Workflows

on:
workflow_run:
workflows: ["Label Stale Contributions"]
workflows: ['Label Stale Contributions']
types:
- completed
issues:
Expand All @@ -24,7 +24,7 @@ jobs:
# Returns: Posts comment tagging assignee and helpful message
assigned-comment:
if: github.event.action == 'assigned'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Post assignee issue comment
id: assigned-comment
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
# Returns: Posts warning comment tagging assignee
stale-label-comment:
if: ${{ github.event.action == 'labeled' && github.event.label.name == 'stale' }}
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Post stale issue comment
id: stale-label-comment
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/community-stale-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ on:
workflow_dispatch: # enables manual trigger
# Scheduled to run at 12:00 on every Monday
schedule:
- cron: "0 0 * * MON"
- cron: '0 0 * * MON'

jobs:
# Trigger: Scheduled weekly
# Returns: labels issues and PRs with 'stale' after 30 days inactivity
# PRs: automated closing after 1 more week of inactivity
# Issues: requires manual closing by maintainers
stale:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
issues: write
pull-requests: write
Expand All @@ -27,21 +27,21 @@ jobs:
- uses: actions/stale@v9 # https://github.com/actions/stale
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-label: "stale"
stale-pr-label: "stale"
stale-issue-label: 'stale'
stale-pr-label: 'stale'
days-before-stale: 30
# disables closing issues
days-before-issue-close: -1
days-before-pr-close: 7
# only scan assigned issues
include-only-assigned: true
# ignore issues assigned to staff and bots
exempt-assignees: "kyleecodes, swetha-charles, eleanorreem, annarhughes, tarebyte, dependabot[bot], dependabot, github-actions[bot], github-actions"
exempt-assignees: 'kyleecodes, swetha-charles, eleanorreem, annarhughes, tarebyte, dependabot[bot], dependabot, github-actions[bot], github-actions'
# disable removing stale label due to irrelevant activity (like branch updates)
remove-stale-when-updated: false
# exempt dependabot prs from going stale
exempt-pr-labels: dependencies
# disable counting irrelevant activity (branch updates) towards day counter on prs.
ignore-pr-updates: true
# actions/stale does not enable tagging authors / assignees, so comments are handled by Issue Comments Workflows.
stale-pr-message: "As per Chayn policy, after 30 days of inactivity, we will close this PR in 7 days. Please comment or update to keep open."
stale-pr-message: 'As per Chayn policy, after 30 days of inactivity, we will close this PR in 7 days. Please comment or update to keep open.'
2 changes: 1 addition & 1 deletion .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
create-pr-to-main:
name: Create release PR to main
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Create Pull Request
uses: actions/github-script@v7
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/dependabot-pr-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
# if any vulnerabilities or invalid licenses are introduced.
# See for more info: https://github.com/actions/dependency-review-action

name: "Dependency Review"
name: 'Dependency Review'
on: [pull_request]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: "Checkout Repository"
- name: 'Checkout Repository'
uses: actions/checkout@v4
- name: "Dependency Review"
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
with:
# fails when moderate vulnerabilities are deteched
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/newrelic-release-tracking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
newrelic:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: New Relic Release Tracking
steps:
# This step builds a var with the release tag value to use later
Expand Down

0 comments on commit a32a04f

Please sign in to comment.