diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..08ac00b --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,16 @@ +version: 2 +updates: + # GitHub Actions — обновляет версии actions в workflows + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + labels: [dependencies, ci] + + # Cargo — только security-апдейты, без шума от minor/patch + - package-ecosystem: cargo + directory: / + schedule: + interval: weekly + open-pull-requests-limit: 5 + labels: [dependencies, rust] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3ba5a65..e348cea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,7 +72,7 @@ jobs: # ── CVE scan of source tree and Cargo.lock ────────────────────────────── - name: Trivy — filesystem scan (Cargo.lock + source) if: always() - uses: aquasecurity/trivy-action@master + uses: aquasecurity/trivy-action@0.30.0 with: scan-type: fs scan-ref: . diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cd77189..465b768 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -120,7 +120,7 @@ jobs: # ── CVE scan of the pushed image ──────────────────────────────────────── # Images are FROM scratch — no OS packages, only binary CVE scan - name: Trivy — image scan (${{ matrix.name }}) - uses: aquasecurity/trivy-action@master + uses: aquasecurity/trivy-action@0.30.0 with: scan-type: image image-ref: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.ver.outputs.tag }}${{ matrix.suffix }} @@ -139,7 +139,7 @@ jobs: release: name: GitHub Release runs-on: ubuntu-latest - needs: [build, scan] + needs: build permissions: contents: write packages: read # to pull image for SBOM generation