From 676eb2dfd58a591cc29a9d451034979cb812c9bf Mon Sep 17 00:00:00 2001 From: rldyourmnd Date: Sat, 14 Nov 2026 01:42:15 +0500 Subject: [PATCH 1/2] ci: take the hosted tools from nddev-ci The hosted jobs used std-0004's composite actions. nddev-ci's hosted-sdk and hosted-cache take their place, the tools at the registry's exact versions, and the result gate is one jq check. --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d7e76b..cd0466b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -263,9 +263,9 @@ jobs: with: persist-credentials: false fetch-depth: 0 - - uses: NDDev-Technocracy-Standarts/std-0004-ci-cd-workflows/.github/actions/tools@c192c6adcf22088abf456635de614d42e8fa3f8d # nddev-cicd-v0.6.20 + - uses: NDDev-Technocracy-OpenNetwork/nddev-ci/actions/hosted-sdk@9fead1382c452a6b791a0a9e464ac6ac66537ac3 # v0.6.51 with: - capability: security + tools: actionlint@1.7.12,zizmor@1.32.0,gitleaks@8.30.1 - name: Lint and audit workflows run: | actionlint @@ -287,10 +287,10 @@ jobs: runs-on: ubuntu-26.04 timeout-minutes: 5 steps: - - uses: NDDev-Technocracy-Standarts/std-0004-ci-cd-workflows/.github/actions/gate@c192c6adcf22088abf456635de614d42e8fa3f8d # nddev-cicd-v0.6.20 - with: - needs: ${{ toJSON(needs) }} - # Windows installs run on main and manual runs; pull requests expect them skipped. - expected: >- + - name: Every required job ended as expected + env: + NEEDS: ${{ toJSON(needs) }} + EXPECTED: >- {"artifacts":"success","devin-artifacts":"success","devin-e2e":"success","setup-e2e":"success", "deploy-e2e":"success","workflows":"success","devin-e2e-windows":"${{ github.event_name == 'pull_request' && 'skipped' || 'success' }}","setup-e2e-windows":"${{ github.event_name == 'pull_request' && 'skipped' || 'success' }}"} + run: jq -e --argjson want "$EXPECTED" 'map_values(.result) == $want' <<< "$NEEDS" From 1ec9bc771566bbcac829ac524303feea5239281c Mon Sep 17 00:00:00 2001 From: rldyourmnd Date: Sat, 14 Nov 2026 01:49:13 +0500 Subject: [PATCH 2/2] ci: download the tools install-action does not carry actionlint, gitleaks and cargo-audit come from their official releases, checked against their SHA-256 digests; install-action keeps the rest. --- .github/workflows/ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd0466b..736dee8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -265,7 +265,18 @@ jobs: fetch-depth: 0 - uses: NDDev-Technocracy-OpenNetwork/nddev-ci/actions/hosted-sdk@9fead1382c452a6b791a0a9e464ac6ac66537ac3 # v0.6.51 with: - tools: actionlint@1.7.12,zizmor@1.32.0,gitleaks@8.30.1 + tools: zizmor@1.32.0 + - name: Install actionlint 1.7.12 and gitleaks 8.30.1, checked against their digests + run: | + set -euo pipefail + bin="$HOME/.local/bin"; mkdir -p "$bin" + curl -fsSL -o "$RUNNER_TEMP/actionlint.tgz" "https://github.com/rhysd/actionlint/releases/download/v1.7.12/actionlint_1.7.12_linux_amd64.tar.gz" + echo "8aca8db96f1b94770f1b0d72b6dddcb1ebb8123cb3712530b08cc387b349a3d8 $RUNNER_TEMP/actionlint.tgz" | sha256sum -c - + tar -xzf "$RUNNER_TEMP/actionlint.tgz" -C "$bin" "actionlint" + curl -fsSL -o "$RUNNER_TEMP/gitleaks.tgz" "https://github.com/gitleaks/gitleaks/releases/download/v8.30.1/gitleaks_8.30.1_linux_x64.tar.gz" + echo "551f6fc83ea457d62a0d98237cbad105af8d557003051f41f3e7ca7b3f2470eb $RUNNER_TEMP/gitleaks.tgz" | sha256sum -c - + tar -xzf "$RUNNER_TEMP/gitleaks.tgz" -C "$bin" "gitleaks" + echo "$bin" >> "$GITHUB_PATH" - name: Lint and audit workflows run: | actionlint