From 8ec0cf42af2b1e790bdae7344eadc6d6a936d236 Mon Sep 17 00:00:00 2001 From: Yahav Itschak Date: Fri, 5 Jul 2024 09:42:58 +0300 Subject: [PATCH] Update GitHub Actions workflows (#96) --- .github/workflows/analysis.yml | 4 ++-- .github/workflows/frogbot-scan-and-fix.yml | 4 ++-- .github/workflows/frogbot-scan-pr.yml | 4 ++-- .github/workflows/tests.yml | 9 +++++++-- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index c1198d8f..9812b3c7 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -6,10 +6,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Source - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: "11" distribution: "temurin" diff --git a/.github/workflows/frogbot-scan-and-fix.yml b/.github/workflows/frogbot-scan-and-fix.yml index 46e3a119..2688825d 100644 --- a/.github/workflows/frogbot-scan-and-fix.yml +++ b/.github/workflows/frogbot-scan-and-fix.yml @@ -15,13 +15,13 @@ jobs: # The repository scanning will be triggered periodically on the following branches. branch: [ "main" ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ matrix.branch }} # Install prerequisites - name: Set up Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: "11" distribution: "adopt" diff --git a/.github/workflows/frogbot-scan-pr.yml b/.github/workflows/frogbot-scan-pr.yml index dddd623a..5c4f0296 100644 --- a/.github/workflows/frogbot-scan-pr.yml +++ b/.github/workflows/frogbot-scan-pr.yml @@ -12,13 +12,13 @@ jobs: # "frogbot" GitHub environment can approve the pull request to be scanned. environment: frogbot steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} # Install prerequisites - name: Set up Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: "11" distribution: "temurin" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 30e63c8d..b5fdde5c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,13 +16,18 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: "11" distribution: "temurin" + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: 1.22.x + cache: false - name: Setup Artifactory run: |