From 1d2c7f6cc97bde1621448941b42f1dd648f3ebaf Mon Sep 17 00:00:00 2001 From: Martin Redolatti Date: Tue, 23 Jan 2024 17:32:56 -0300 Subject: [PATCH] use matrix.fips-mode. bump actions version --- .github/workflows/cd.yml | 4 ++-- .github/workflows/ci.yml | 10 +++++----- .github/workflows/unstable.yml | 4 ++-- .github/workflows/update-license-year.yml | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 437c8515..e9eac815 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -19,7 +19,7 @@ jobs: - 6379:6379 steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -77,7 +77,7 @@ jobs: password: ${{ secrets.ARTIFACTORY_DOCKER_PASS }} - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get version run: echo "VERSION=$(awk '/^const Version/{gsub(/"/, "", $4); print $4}' splitio/version.go)" >> $GITHUB_ENV diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1291d35c..e31315c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: - 6379:6379 steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -61,17 +61,17 @@ jobs: uses: actions/checkout@v3 - name: Docker Build and Push - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . file: docker/Dockerfile.${{ matrix.app }} push: false tags: splitio-docker.jfrog.io/split-${{ matrix.app }}:latest build-args: | - FIPS_MODE=${{ fips-mode }} + FIPS_MODE=${{ matrix.fips-mode }} - name: Scan container using Lacework - uses: lacework/lw-scanner-action@v1.3.2 + uses: lacework/lw-scanner-action@v1.4.0 with: LW_ACCOUNT_NAME: ${{ secrets.LW_ACCOUNT_NAME }} LW_ACCESS_TOKEN: ${{ secrets.LW_ACCESS_TOKEN }} @@ -83,7 +83,7 @@ jobs: - name: Save vulnerability report if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: vulnerability_report path: split-${{ matrix.app }}.html diff --git a/.github/workflows/unstable.yml b/.github/workflows/unstable.yml index f6322be8..43ad9423 100644 --- a/.github/workflows/unstable.yml +++ b/.github/workflows/unstable.yml @@ -20,13 +20,13 @@ jobs: password: ${{ secrets.ARTIFACTORY_DOCKER_PASS }} - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get short hash run: echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV - name: Docker Build and Push - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . file: docker/Dockerfile.${{ matrix.mode }} diff --git a/.github/workflows/update-license-year.yml b/.github/workflows/update-license-year.yml index 13aaac8a..74b65c53 100644 --- a/.github/workflows/update-license-year.yml +++ b/.github/workflows/update-license-year.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0