diff --git a/.github/workflows/_go-test.yml b/.github/workflows/_go-test.yml index 48d156d6..438507b9 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 39a84840..1e78b2df 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@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5 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 fc40ac1d..9903d5c3 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@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5 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@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5 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@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5 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 00ca5295..77e3d85a 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 511503a6..1e68cd76 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@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0 with: go-version-file: go.mod diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index afaf4a68..8250612c 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,7 +125,7 @@ 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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e7f4999c..c451d940 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -93,7 +93,7 @@ jobs: persist-credentials: false - name: Log in to GHCR - uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 + uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0 with: registry: ghcr.io username: ${{ github.actor }} @@ -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 @@ -166,7 +166,7 @@ jobs: run: make build-installer IMG="$IMG" - name: Upload install.yaml - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: install-manifest path: dist/install.yaml @@ -206,7 +206,7 @@ jobs: contents: write steps: - name: Download install.yaml - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: install-manifest diff --git a/.github/workflows/test-ansible.yml b/.github/workflows/test-ansible.yml index 2e1c2d62..955d2a39 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 c620da63..d877194b 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@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0 with: go-version-file: go.mod diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b03a22da..a9b8fe7b 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@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0 with: go-version-file: go.mod diff --git a/.github/workflows/trivy-scan.yaml b/.github/workflows/trivy-scan.yaml index 3df70aa7..b31d7167 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)