From 64d094834d44e382f23beb4a7471b7fc10a7388d Mon Sep 17 00:00:00 2001 From: Scott Suarez Date: Thu, 19 Dec 2024 10:40:11 -0800 Subject: [PATCH] Pin ubuntu version for all github workflows (#12621) --- .github/workflows/codeql.yml | 2 +- .github/workflows/reassign-reviewer.yml | 2 +- .github/workflows/request-reviewer.yml | 2 +- .github/workflows/scheduled-pr-reminders.yml | 2 +- .github/workflows/scorecard.yml | 2 +- .github/workflows/test-tgc.yml | 2 +- .github/workflows/test-tpg.yml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index c3f12b1d5d2c..55026329eadf 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -13,7 +13,7 @@ on: jobs: analyze: name: Analyze - runs-on: 'ubuntu-latest' + runs-on: ubuntu-22.04 timeout-minutes: 360 permissions: # required for all workflows diff --git a/.github/workflows/reassign-reviewer.yml b/.github/workflows/reassign-reviewer.yml index 0cf71cb0d190..f0d25840e7f9 100644 --- a/.github/workflows/reassign-reviewer.yml +++ b/.github/workflows/reassign-reviewer.yml @@ -11,7 +11,7 @@ on: jobs: reassign-reviewer: if: ${{ github.event.issue.pull_request }} - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 permissions: pull-requests: write env: diff --git a/.github/workflows/request-reviewer.yml b/.github/workflows/request-reviewer.yml index 4b913b5c3911..b8e8d80043ff 100644 --- a/.github/workflows/request-reviewer.yml +++ b/.github/workflows/request-reviewer.yml @@ -16,7 +16,7 @@ on: jobs: request-review: if: (github.event.action == 'created' && github.event.issue.state == 'open' && github.event.issue.draft == false && github.event.comment.user.login == github.event.issue.user.login) || (github.event.action != 'created' && github.event.pull_request.state == 'open' && github.event.pull_request.draft == false ) - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 permissions: pull-requests: write env: diff --git a/.github/workflows/scheduled-pr-reminders.yml b/.github/workflows/scheduled-pr-reminders.yml index 25723ffd3b1a..2c8ac5bf4323 100644 --- a/.github/workflows/scheduled-pr-reminders.yml +++ b/.github/workflows/scheduled-pr-reminders.yml @@ -9,7 +9,7 @@ on: jobs: send-pr-reminders: if: github.repository == 'GoogleCloudPlatform/magic-modules' - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 permissions: pull-requests: write env: diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index cd54f8e44a32..3efa48f2f59c 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -20,7 +20,7 @@ permissions: read-all jobs: analysis: name: Scorecard analysis - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 permissions: # Needed to upload the results to code-scanning dashboard. security-events: write diff --git a/.github/workflows/test-tgc.yml b/.github/workflows/test-tgc.yml index 4ee2f243bbf0..5c87136b2a6d 100644 --- a/.github/workflows/test-tgc.yml +++ b/.github/workflows/test-tgc.yml @@ -37,7 +37,7 @@ jobs: build-and-unit-test: permissions: statuses: write - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 timeout-minutes: 30 steps: - name: Get Job URL diff --git a/.github/workflows/test-tpg.yml b/.github/workflows/test-tpg.yml index 1cf109d723db..14348cb95cd4 100644 --- a/.github/workflows/test-tpg.yml +++ b/.github/workflows/test-tpg.yml @@ -34,7 +34,7 @@ jobs: build-and-unit-test: permissions: statuses: write - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 timeout-minutes: 30 steps: - name: Get Job URL