From 27bae0b2b7d7bdcb8b4c4f886368a4c4e46bf997 Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Wed, 6 Nov 2024 11:18:49 -0500 Subject: [PATCH] Update to the latest available actions (#191) --- .github/workflows/build.yaml | 2 +- .github/workflows/codeql-analysis.yml | 6 +++--- .github/workflows/release.yaml | 8 +++----- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index dded697..f58fb53 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -10,7 +10,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: sed -i "s|{{PATHTOREPO}}|$(pwd)|" packages/k8s/tests/test-kind.yaml name: Setup kind cluster yaml config - uses: helm/kind-action@v1.2.0 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c8851c0..1d98427 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -42,7 +42,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -56,7 +56,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # â„šī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun @@ -69,4 +69,4 @@ jobs: # ./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fb275a7..ea6c49d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -5,17 +5,16 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: npm install name: Install dependencies - run: npm run bootstrap name: Bootstrap the packages - run: npm run build-all name: Build packages - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 id: releaseVersion with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} script: | const fs = require('fs'); const hookVersion = require('./package.json').version @@ -36,9 +35,8 @@ jobs: echo "k8s-sha=$sha_k8s" >> $GITHUB_OUTPUT - name: replace SHA id: releaseNotes - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} script: | const fs = require('fs'); var releaseNotes = fs.readFileSync('${{ github.workspace }}/releaseNotes.md', 'utf8').replace(//g, '${{ steps.releaseVersion.outputs.version }}')