From 0df7e80293aef4e69645962a84e9a1df7867dbf2 Mon Sep 17 00:00:00 2001 From: Karan Batavia <118820668+karan-batavia@users.noreply.github.com> Date: Fri, 20 Dec 2024 15:12:41 +0530 Subject: [PATCH] Pin OS in actions to 22.04 (#161) * test on ubuntu 22 * pin os to ubuntu 22.04 --- .github/workflows/comparison_results.yml | 4 ++-- .github/workflows/containers.yml | 2 +- .github/workflows/gh_release.yml | 2 +- .github/workflows/master.yml | 2 +- .github/workflows/pr.yml | 11 +++++++---- .github/workflows/release.yml | 2 +- .github/workflows/release_pr_automation.yml | 2 +- .github/workflows/test_distro.yml | 2 +- .github/workflows/upgrade-deps.yml | 2 +- .github/workflows/upstream_sync.yml | 2 +- 10 files changed, 17 insertions(+), 14 deletions(-) diff --git a/.github/workflows/comparison_results.yml b/.github/workflows/comparison_results.yml index 5290911ef989..e7c81d2988a1 100644 --- a/.github/workflows/comparison_results.yml +++ b/.github/workflows/comparison_results.yml @@ -26,7 +26,7 @@ env: jobs: start_workflow: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Send message to slack id: initial-message @@ -49,7 +49,7 @@ jobs: matrix: language: ['java-1', 'java-2' ,'python', 'js', 'ruby-1', 'ruby-2', 'go', 'kotlin', 'csharp', 'php'] continue-on-error: true - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 - name: Install JDK-18 diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml index 52c3f59a9d33..c128079ec8b7 100644 --- a/.github/workflows/containers.yml +++ b/.github/workflows/containers.yml @@ -11,7 +11,7 @@ env: jobs: deploy: if: github.repository_owner == 'joernio' - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 continue-on-error: true permissions: contents: write diff --git a/.github/workflows/gh_release.yml b/.github/workflows/gh_release.yml index 5671bef2ce9a..b06d12ae0ec8 100644 --- a/.github/workflows/gh_release.yml +++ b/.github/workflows/gh_release.yml @@ -7,7 +7,7 @@ jobs: release: if: github.repository_owner == 'Privado-Inc' concurrency: release - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 35a353540397..33c780ae830e 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -7,7 +7,7 @@ on: jobs: test: concurrency: master - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 8e86647d91b4..c006c4c434ae 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -1,11 +1,14 @@ name: pr -on: pull_request +on: + pull_request: + workflow_dispatch: + jobs: test: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + os: [ubuntu-22.04, windows-latest, macos-latest] steps: - uses: actions/checkout@v4 with: @@ -55,7 +58,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} formatting: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 with: @@ -81,7 +84,7 @@ jobs: uses: dieghernan/cff-validator@v3 test-scripts: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bb02d0f58519..3778524fb53c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ jobs: release: if: github.repository_owner == 'Privado-Inc' concurrency: release - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/release_pr_automation.yml b/.github/workflows/release_pr_automation.yml index 4b978d6fa4a8..55cfe311b29d 100644 --- a/.github/workflows/release_pr_automation.yml +++ b/.github/workflows/release_pr_automation.yml @@ -6,7 +6,7 @@ on: jobs: create_pr: permissions: write-all - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/test_distro.yml b/.github/workflows/test_distro.yml index 023595da9f1c..100d1c88b999 100644 --- a/.github/workflows/test_distro.yml +++ b/.github/workflows/test_distro.yml @@ -5,7 +5,7 @@ jobs: release: if: github.repository_owner == 'Privado-Inc' concurrency: release - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/upgrade-deps.yml b/.github/workflows/upgrade-deps.yml index 5435db0dab34..3b3cd56d5dd5 100644 --- a/.github/workflows/upgrade-deps.yml +++ b/.github/workflows/upgrade-deps.yml @@ -9,7 +9,7 @@ on: - cron: '0 2 * * *' jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/upstream_sync.yml b/.github/workflows/upstream_sync.yml index 23c1c4405b73..614b20a253ec 100644 --- a/.github/workflows/upstream_sync.yml +++ b/.github/workflows/upstream_sync.yml @@ -6,7 +6,7 @@ on: jobs: sync_upstream: permissions: write-all - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 with: