chore: pin dependencies to SHA digests for OpenSSF scorecard (#104)

Pin scorecard-action and codeql-action to commit SHA in scorecard.yml.
Pin base images to digest in Dockerfile.redos and Dockerfile.astra.
Replace curl|bash with direct binary download for actionlint.
Remove unused pip install cargo-audit-sarif.
This commit is contained in:
2026-04-06 02:28:02 +03:00
committed by GitHub
parent b949ef49b8
commit 69b7f1fb4e
4 changed files with 8 additions and 6 deletions

View File

@@ -37,7 +37,10 @@ jobs:
steps: steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install actionlint - 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 - name: Run actionlint
run: ./actionlint -ignore "shellcheck reported issue" -ignore "SC[0-9]" run: ./actionlint -ignore "shellcheck reported issue" -ignore "SC[0-9]"
@@ -116,7 +119,6 @@ jobs:
- name: Upload cargo-audit results as SARIF - name: Upload cargo-audit results as SARIF
if: always() if: always()
run: | run: |
pip install --quiet cargo-audit-sarif 2>/dev/null || true
python3 -c " python3 -c "
import json, sys import json, sys
sarif = { sarif = {

View File

@@ -24,7 +24,7 @@ jobs:
persist-credentials: false persist-credentials: false
- name: Run OpenSSF Scorecard - name: Run OpenSSF Scorecard
uses: ossf/scorecard-action@v2.4.3 uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
with: with:
results_file: results.sarif results_file: results.sarif
results_format: sarif results_format: sarif
@@ -32,7 +32,7 @@ jobs:
repo_token: ${{ secrets.SCORECARD_TOKEN || secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.SCORECARD_TOKEN || secrets.GITHUB_TOKEN }}
- name: Upload Scorecard results to GitHub Security tab - 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: with:
sarif_file: results.sarif sarif_file: results.sarif
category: scorecard category: scorecard

View File

@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1.4 # syntax=docker/dockerfile:1.4
# NORA on Astra Linux SE base (Debian-based, FSTEC-certified) # NORA on Astra Linux SE base (Debian-based, FSTEC-certified)
# Binary is pre-built by CI and passed via context # Binary is pre-built by CI and passed via context
FROM debian:bookworm-slim FROM debian:bookworm-slim@sha256:f06537653ac770703bc45b4b113475bd402f451e85223f0f2837acbf89ab020a
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl \ && apt-get install -y --no-install-recommends ca-certificates curl \

View File

@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1.4 # syntax=docker/dockerfile:1.4
# NORA on RED OS base (RPM-based, FSTEC-certified) # NORA on RED OS base (RPM-based, FSTEC-certified)
# Binary is pre-built by CI and passed via context # 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 \ RUN microdnf install -y ca-certificates shadow-utils \
&& microdnf clean all \ && microdnf clean all \