diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55f8aef..2979a85 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,10 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Install actionlint - run: bash <(curl -s https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) + run: | + ACTIONLINT_VERSION=1.7.12 + curl -sLO "https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VERSION}/actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz" + tar xzf "actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz" actionlint - name: Run actionlint run: ./actionlint -ignore "shellcheck reported issue" -ignore "SC[0-9]" @@ -116,7 +119,6 @@ jobs: - name: Upload cargo-audit results as SARIF if: always() run: | - pip install --quiet cargo-audit-sarif 2>/dev/null || true python3 -c " import json, sys sarif = { diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index a6d97d3..7dcd00b 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -24,7 +24,7 @@ jobs: persist-credentials: false - name: Run OpenSSF Scorecard - uses: ossf/scorecard-action@v2.4.3 + uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3 with: results_file: results.sarif results_format: sarif @@ -32,7 +32,7 @@ jobs: repo_token: ${{ secrets.SCORECARD_TOKEN || secrets.GITHUB_TOKEN }} - name: Upload Scorecard results to GitHub Security tab - uses: github/codeql-action/upload-sarif@v4 # tag required by scorecard webapp verification + uses: github/codeql-action/upload-sarif@a60c4df7a135c7317c1e9ddf9b5a9b07a910dda9 # v4 with: sarif_file: results.sarif category: scorecard diff --git a/Dockerfile.astra b/Dockerfile.astra index b739466..cab0a82 100644 --- a/Dockerfile.astra +++ b/Dockerfile.astra @@ -1,7 +1,7 @@ # syntax=docker/dockerfile:1.4 # NORA on Astra Linux SE base (Debian-based, FSTEC-certified) # Binary is pre-built by CI and passed via context -FROM debian:bookworm-slim +FROM debian:bookworm-slim@sha256:f06537653ac770703bc45b4b113475bd402f451e85223f0f2837acbf89ab020a RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates curl \ diff --git a/Dockerfile.redos b/Dockerfile.redos index 28ee605..2166818 100644 --- a/Dockerfile.redos +++ b/Dockerfile.redos @@ -1,7 +1,7 @@ # syntax=docker/dockerfile:1.4 # NORA on RED OS base (RPM-based, FSTEC-certified) # Binary is pre-built by CI and passed via context -FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4 +FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4@sha256:c0e70387664f30cd9cf2795b547e4a9a51002c44a4a86aa9335ab030134bf392 RUN microdnf install -y ca-certificates shadow-utils \ && microdnf clean all \