diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index f5a2d97..a1fd50d 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -45,7 +45,7 @@ jobs: matrix: include: - language: go - build-mode: autobuild + build-mode: manual # CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' # Use `c-cpp` to analyze code written in C, C++ or both # Use 'java-kotlin' to analyze code written in Java, Kotlin or both @@ -80,12 +80,7 @@ jobs: - if: matrix.build-mode == 'manual' shell: bash run: | - echo 'If you are using a "manual" build mode for one or more of the' \ - 'languages you are analyzing, replace this with the commands to build' \ - 'your code, for example:' - echo ' make bootstrap' - echo ' make release' - exit 1 + go test ./... && make - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index dc1a7eb..930917a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -25,7 +25,7 @@ jobs: - name: Checkout uses: actions/checkout@v4.1.1 # v4.1.1 - name: Setup Golang - uses: actions/setup-go@v4.1.0 # v4.1.0 + uses: actions/setup-go@v5.0.1 # v4.1.0 with: go-version-file: go.mod - name: Build binary @@ -55,7 +55,7 @@ jobs: contents: read steps: - name: Login to GHCR - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} @@ -77,11 +77,11 @@ jobs: pull-requests: write steps: - name: Download artifacts - uses: actions/download-artifact@v3.0.2 # v3.0.2 + uses: actions/download-artifact@v4.1.7 # v3.0.2 with: path: ./artifacts - name: Publish release - uses: softprops/action-gh-release@v1 # v1 + uses: softprops/action-gh-release@v2 # v1 with: files: | ./artifacts/azure-ipoib-ipam-cni-*-*/*