fix(archive): sharpcompress 1.0 api-sprung fail-closed abfangen #267
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: security-claims-evidence | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| security-claims-evidence: | |
| if: github.event_name != 'pull_request' || github.actor != 'dependabot[bot]' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| 10.0.102 | |
| - name: Assert required CLI tools | |
| run: command -v gh && command -v jq | |
| - name: Assert SECURITY_CLAIMS_TOKEN present | |
| shell: bash | |
| run: | | |
| test -n "${SECURITY_CLAIMS_TOKEN:-}" || (echo "FAIL: SECURITY_CLAIMS_TOKEN missing" >&2; exit 1) | |
| echo "OK: SECURITY_CLAIMS_TOKEN present" | |
| env: | |
| SECURITY_CLAIMS_TOKEN: ${{ secrets.SECURITY_CLAIMS_TOKEN }} | |
| - name: Verify security claims | |
| env: | |
| SECURITY_CLAIMS_TOKEN: ${{ secrets.SECURITY_CLAIMS_TOKEN }} | |
| GITHUB_REPOSITORY: ${{ github.repository }} | |
| run: | | |
| set -euo pipefail | |
| export GH_TOKEN="${SECURITY_CLAIMS_TOKEN}" | |
| bash tools/audit/verify-security-claims.sh | |
| - name: Validate result schema | |
| if: always() | |
| run: dotnet restore --locked-mode tools/ci/checks/ResultSchemaValidator/ResultSchemaValidator.csproj && dotnet build -c Release tools/ci/checks/ResultSchemaValidator/ResultSchemaValidator.csproj && dotnet tools/ci/checks/ResultSchemaValidator/bin/Release/net10.0/ResultSchemaValidator.dll --schema tools/ci/schema/result.schema.json --result artifacts/ci/security-claims-evidence/result.json | |
| - name: Upload Artifact | |
| if: always() | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: ci-security-claims-evidence | |
| path: artifacts/ci/security-claims-evidence/ | |
| if-no-files-found: error |