From 7b26a6624a58da3bb68b8e44abca5e67a13f4519 Mon Sep 17 00:00:00 2001 From: rumstead <37445536+rumstead@users.noreply.github.com> Date: Thu, 18 Apr 2024 12:39:04 -0400 Subject: [PATCH] Update codeql-analysis.yml (#28) --- .github/workflows/ci-build.yaml | 20 +++++++++++--------- .github/workflows/codeql-analysis.yml | 10 +++++----- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci-build.yaml b/.github/workflows/ci-build.yaml index 376934b..63e8438 100644 --- a/.github/workflows/ci-build.yaml +++ b/.github/workflows/ci-build.yaml @@ -17,9 +17,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Golang - uses: actions/setup-go@v1 + uses: actions/setup-go@v5 with: go-version: ${{ env.GOLANG_VERSION }} - name: Download all Go modules @@ -35,9 +35,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Golang - uses: actions/setup-go@v1 + uses: actions/setup-go@v5 with: go-version: ${{ env.GOLANG_VERSION }} - name: Download all Go modules @@ -51,9 +51,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Golang - uses: actions/setup-go@v1 + uses: actions/setup-go@v5 with: go-version: ${{ env.GOLANG_VERSION }} - name: Run golangci-lint @@ -77,10 +77,12 @@ jobs: go mod download - name: Run all unit tests run: make test - - name: Push code coverage artifacts - uses: codecov/codecov-action@v2 + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} with: files: ./coverage.out flags: unittests fail_ci_if_error: true - verbose: true \ No newline at end of file + verbose: true diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b68603e..6de2416 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -18,7 +18,7 @@ on: # The branches below must be a subset of the branches above branches: [ main ] schedule: - - cron: '41 19 * * 0' + - cron: '17 11 * * 2' jobs: analyze: @@ -38,11 +38,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v2 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v1 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -53,7 +53,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@v1 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -67,4 +67,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v1