Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ jobs:
run:
working-directory: backend
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
- name: Install backend dependencies
Expand Down Expand Up @@ -181,8 +181,8 @@ jobs:
run:
working-directory: backend
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
- name: Install backend dependencies
Expand Down Expand Up @@ -426,8 +426,8 @@ jobs:
run:
working-directory: frontend
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: "20"
- name: Install frontend dependencies
Expand All @@ -441,7 +441,7 @@ jobs:
release-image-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Resolve every Compose profile and verify release image coverage
run: |
set -euo pipefail
Expand Down Expand Up @@ -495,7 +495,7 @@ jobs:
SHODAN_API_KEY: ci-shodan-key
HIBP_API_KEY: ci-hibp-key
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# Three shapes, each one a file set something real runs. Validating only the
# merged file would leave the installation unchecked — and it is the one that
# faces the internet, with no source mounts and a read-only root filesystem —
Expand Down Expand Up @@ -551,7 +551,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Write the installation's configuration
# The stack refuses to start without a generated configuration, and the
# wizard is the same one an operator runs; a defective wizard therefore
Expand Down Expand Up @@ -658,7 +658,7 @@ jobs:
repo-hygiene:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Fail if ignore rules exclude source files
run: python3 scripts/check_tracked_sources.py .
# The same gate also compares the resource table in docs/configuration.md
Expand Down Expand Up @@ -723,7 +723,7 @@ jobs:
secrets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
# The gitleaks OSS binary in a container rather than gitleaks-action: the
Expand Down Expand Up @@ -759,11 +759,11 @@ jobs:
matrix:
language: [python, javascript-typescript]
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: github/codeql-action/init@1190a975f95ce23525efb6a3fc21ea29567c1b52 # v3.38.2
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
language: ${{ matrix.language }}
- uses: github/codeql-action/analyze@1190a975f95ce23525efb6a3fc21ea29567c1b52 # v3.38.2
- uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3

# Supply-chain gate. Pinned dependencies only help if someone notices when a
# pinned version becomes vulnerable, so this job fails on a known advisory in
Expand All @@ -773,8 +773,8 @@ jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
- name: Audit backend dependencies for known vulnerabilities
Expand Down Expand Up @@ -831,7 +831,7 @@ jobs:
--severity-level medium --confidence-level medium \
-r app ../connectors
working-directory: backend
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: "20"
- name: Audit shipped frontend dependencies for known vulnerabilities
Expand Down Expand Up @@ -862,6 +862,6 @@ jobs:
python scripts/check_deferred_advisories.py README.md /tmp/audit-*.json
- name: Review new dependencies introduced by this pull request
if: github.event_name == 'pull_request'
uses: actions/dependency-review-action@2031cfc080254a8a887f58cffee85186f0e49e48 # v4.9.0
uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
with:
fail-on-severity: high
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
version: ${{ steps.version.outputs.version }}
release_tag: ${{ steps.version.outputs.release_tag }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# Qualified, and it has to stay qualified: `ref: v0.2.1` is ambiguous
# when a branch of that name exists, and checkout resolves the branch.
Expand All @@ -80,7 +80,7 @@ jobs:
# held somewhere else. `scripts/check_release_refs.py` fails the build
# if any checkout in this file names a ref a branch can shadow.
ref: ${{ github.event_name == 'workflow_dispatch' && format('refs/tags/{0}', inputs.release_tag) || github.ref }}
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
- name: Fail if Compose images are missing from the release matrix
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
context: .
dockerfile: ./connectors/exposure_endpoints/Dockerfile
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# The images are built from the tagged tree, not from a branch that
# happens to share the tag's name.
Expand All @@ -182,9 +182,9 @@ jobs:
id: prefix
run: echo "value=ghcr.io/$(echo '${{ github.repository_owner }}/opendrp' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"

- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1

- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
- uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -201,7 +201,7 @@ jobs:
# which build it was.
- name: Build the candidate image
id: build
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: ${{ matrix.context }}
file: ${{ matrix.dockerfile }}
Expand Down Expand Up @@ -231,7 +231,7 @@ jobs:
- name: Scan the candidate digest
# 0.35.0 is the first immutable, post-incident Trivy Action release;
# earlier tags were force-moved during the March 2026 compromise.
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # 0.35.0
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # 0.36.0
with:
image-ref: ${{ steps.prefix.outputs.value }}/${{ matrix.image }}@${{ steps.build.outputs.digest }}
format: table
Expand Down Expand Up @@ -291,13 +291,13 @@ jobs:
# job token can read the packages this same repository pushed.
packages: read
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# The tag, by a ref no branch can shadow, for the same reason the build
# job qualifies its own checkout: the smoke has to read the Compose file
# the release was built from, not one a branch happens to carry.
ref: refs/tags/${{ needs.verify-version.outputs.release_tag }}
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"

Expand All @@ -322,7 +322,7 @@ jobs:
# wizard produces a configuration the stack rejects fails here as well.
run: python3 setup.py --non-interactive --public-url http://127.0.0.1

- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
- uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -472,7 +472,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# The release notes come from the tagged tree, not from a branch that
# happens to share the tag's name.
Expand Down
Loading