diff --git a/.github/workflows/_go-test.yml b/.github/workflows/_go-test.yml index 48d156d..438507b 100644 --- a/.github/workflows/_go-test.yml +++ b/.github/workflows/_go-test.yml @@ -63,7 +63,7 @@ jobs: # is exactly what a contributor needs to fix a coverage regression. - name: Upload coverage to Codecov if: ${{ !cancelled() }} - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 + uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1 with: files: cover.out flags: unittests diff --git a/.github/workflows/_images.yml b/.github/workflows/_images.yml index 39a8484..bf2da4b 100644 --- a/.github/workflows/_images.yml +++ b/.github/workflows/_images.yml @@ -132,7 +132,7 @@ jobs: persist-credentials: false - name: Set up Docker Buildx - uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0 + uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 # Authenticated pulls avoid Docker Hub's anonymous rate limit, which the # systemd base images hit on busy days. Optional: skipped when the secrets @@ -199,7 +199,7 @@ jobs: # của GitHub Actions cần runtime token/URL mà chỉ action JS mới export được # vào môi trường step. Nếu gọi bash với `--cache-to type=gha`, cache sẽ âm # thầm bị bỏ qua. - uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0 + uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0 with: context: ./images file: ./images/Dockerfile.${{ matrix.image }} @@ -232,7 +232,7 @@ jobs: # vẫn hiện trong job summary. - name: Upload Trivy SARIF if: ${{ inputs.scan && !cancelled() && github.event.pull_request.head.repo.fork != true }} - uses: github/codeql-action/upload-sarif@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7 + uses: github/codeql-action/upload-sarif@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2 with: sarif_file: trivy-results/image-${{ matrix.image }}.sarif category: trivy-image-${{ matrix.image }} diff --git a/.github/workflows/_security.yml b/.github/workflows/_security.yml index fc40ac1..891cbca 100644 --- a/.github/workflows/_security.yml +++ b/.github/workflows/_security.yml @@ -83,7 +83,7 @@ jobs: - name: Upload SARIF if: ${{ inputs.upload-sarif && !cancelled() && github.event.pull_request.head.repo.fork != true }} continue-on-error: true - uses: github/codeql-action/upload-sarif@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7 + uses: github/codeql-action/upload-sarif@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2 with: sarif_file: trivy-results/${{ matrix.name }}.sarif category: trivy-${{ matrix.name }} @@ -119,7 +119,7 @@ jobs: - name: Upload SARIF if: ${{ inputs.upload-sarif && !cancelled() && github.event.pull_request.head.repo.fork != true }} continue-on-error: true - uses: github/codeql-action/upload-sarif@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7 + uses: github/codeql-action/upload-sarif@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2 with: sarif_file: trivy-results/deps-and-secrets.sarif category: trivy-deps-and-secrets @@ -139,12 +139,12 @@ jobs: persist-credentials: false - name: Set up Docker Buildx - uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0 + uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 # Built here rather than reusing a published tag so a pull request is # scanned before anything is pushed anywhere. - name: Build operator image - uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0 + uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0 with: context: . tags: sandbox-operator:ci-scan @@ -166,7 +166,7 @@ jobs: - name: Upload SARIF if: ${{ inputs.upload-sarif && !cancelled() && github.event.pull_request.head.repo.fork != true }} continue-on-error: true - uses: github/codeql-action/upload-sarif@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7 + uses: github/codeql-action/upload-sarif@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2 with: sarif_file: trivy-results/image-operator.sarif category: trivy-image-operator diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index 00ca529..77e3d85 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -24,7 +24,7 @@ jobs: matrix: ${{ steps.set-matrix.outputs.matrix }} steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: fetch-depth: 0 @@ -102,10 +102,10 @@ jobs: image: ${{ fromJSON(needs.detect.outputs.matrix) }} steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v4 - name: Login Docker Hub if configured env: @@ -120,7 +120,7 @@ jobs: - name: Login GHCR if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} - uses: docker/login-action@v3 + uses: docker/login-action@v4 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 511503a..bf6439c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -40,12 +40,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Clone the code - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Setup Go - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version-file: go.mod diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index afaf4a6..a877f8f 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -18,17 +18,17 @@ jobs: runs-on: ubuntu-latest steps: - name: Clone the code - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: fetch-depth: 0 - name: Setup Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v7 with: go-version-file: go.mod - name: Log in to GitHub Container Registry - uses: docker/login-action@v3 + uses: docker/login-action@v4 with: registry: ghcr.io username: ${{ github.actor }} @@ -36,7 +36,7 @@ jobs: - name: Extract Docker metadata id: meta - uses: docker/metadata-action@v5 + uses: docker/metadata-action@v6 with: images: ghcr.io/${{ github.repository }} tags: | @@ -45,10 +45,10 @@ jobs: type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v4 - name: Build and push Operator Container Image - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v7 with: context: . push: true @@ -70,7 +70,7 @@ jobs: make build-installer IMG="$IMAGE_TAG" - name: Upload install.yaml as Pipeline Artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: install-manifest path: dist/install.yaml @@ -125,14 +125,14 @@ jobs: PYEOF - name: Upload Ansible single-file playbook as Pipeline Artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ansible-playbook path: dist/cluster-setup.yml - name: Publish GitHub Release (when triggered by tag) if: startsWith(github.ref, 'refs/tags/v') - uses: softprops/action-gh-release@v2 + uses: softprops/action-gh-release@v3 with: files: | dist/install.yaml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e7f4999..e77bb02 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -110,10 +110,10 @@ jobs: type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0 + uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 - name: Build and push operator image - uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0 + uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0 with: context: . push: true @@ -211,7 +211,7 @@ jobs: name: install-manifest - name: Publish release - uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2 + uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3 with: files: install.yaml generate_release_notes: true diff --git a/.github/workflows/test-ansible.yml b/.github/workflows/test-ansible.yml index 2e1c2d6..955d2a3 100644 --- a/.github/workflows/test-ansible.yml +++ b/.github/workflows/test-ansible.yml @@ -20,10 +20,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Clone the code - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: python-version: '3.12' diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index c620da6..7d5c3d5 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -40,12 +40,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Clone the code - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Setup Go - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version-file: go.mod diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b03a22d..e3c7953 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,12 +40,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Clone the code - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Setup Go - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version-file: go.mod diff --git a/.github/workflows/trivy-scan.yaml b/.github/workflows/trivy-scan.yaml index 3df70aa..b31d716 100644 --- a/.github/workflows/trivy-scan.yaml +++ b/.github/workflows/trivy-scan.yaml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v7 # Bước 1: Quét lỗi cấu hình (Misconfigurations) trong Kubernetes Manifests - name: Quét cấu hình Manifest (IaC)