mirror of
https://github.com/actions/attest-build-provenance.git
synced 2025-12-16 04:12:13 +00:00
Some checks failed
Check Transpiled JavaScript / Check dist/ (push) Failing after 25s
Continuous Integration / TypeScript Tests (push) Failing after 3s
Continuous Integration / Test attest-provenance action (push) Failing after 1s
CodeQL / Analyze (TypeScript) (push) Failing after 2s
Public-Good Sigstore Prober / prober (push) Failing after 2s
GitHub Sigstore Prober / prober (push) Failing after 1s
Bumps the actions-minor group with 3 updates in the / directory: [actions/checkout](https://github.com/actions/checkout), [github/codeql-action](https://github.com/github/codeql-action) and [masci/datadog](https://github.com/masci/datadog). Updates `actions/checkout` from 5.0.0 to 5.0.1 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](08c6903cd8...93cb6efe18) Updates `github/codeql-action` from 4.30.8 to 4.31.4 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](f443b600d9...e12f017898) Updates `masci/datadog` from 1.9.2 to 1.9.3 - [Release notes](https://github.com/masci/datadog/releases) - [Commits](f0cad7cba5...a3f481d2ed) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 5.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions-minor - dependency-name: github/codeql-action dependency-version: 4.31.4 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions-minor - dependency-name: masci/datadog dependency-version: 1.9.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
85 lines
2.9 KiB
YAML
85 lines
2.9 KiB
YAML
name: Prober Workflow
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
sigstore:
|
|
description: 'Which Sigstore instance to use for signing'
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
probe:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
attestations: write
|
|
id-token: write
|
|
|
|
steps:
|
|
- name: Request OIDC Token
|
|
run: |
|
|
curl "${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=nobody" \
|
|
-H "Authorization: bearer ${ACTIONS_ID_TOKEN_REQUEST_TOKEN}" \
|
|
-H "Accept: application/json; api-version=2.0" \
|
|
-H "Content-Type: application/json" \
|
|
--silent | jq -r '.value' | jq -R 'split(".") | .[0],.[1] | @base64d | fromjson'
|
|
|
|
- name: Create artifact
|
|
run: |
|
|
date > artifact
|
|
|
|
- name: Attest build provenance
|
|
uses: actions/attest-build-provenance@v3
|
|
env:
|
|
INPUT_PRIVATE-SIGNING: ${{ inputs.sigstore == 'github' && 'true' || 'false' }}
|
|
with:
|
|
subject-path: artifact
|
|
|
|
- name: Verify build artifact
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
run: |
|
|
gh attestation verify ./artifact --owner "$GITHUB_REPOSITORY_OWNER"
|
|
|
|
- name: Upload build artifact
|
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
with:
|
|
path: "artifact"
|
|
|
|
- name: Report attestation prober success
|
|
if: ${{ success() }}
|
|
uses: masci/datadog@a3f481d2ed0f4e1edde2be2f564b94719d6d4bc2 # v1.9.3
|
|
with:
|
|
api-key: "${{ secrets.DATADOG_API_KEY }}"
|
|
service-checks: |
|
|
- check: "attestation-integration.actions.prober"
|
|
status: 0
|
|
host_name: github.com
|
|
tags:
|
|
- "catalog_service:${{ secrets.CATALOG_SERVICE }}"
|
|
- "service:${{ secrets.CATALOG_SERVICE }}"
|
|
- "stamp:${{ secrets.STAMP }}"
|
|
- "env:production"
|
|
- "repo:${{ github.repository }}"
|
|
- "team:${{ secrets.TEAM }}"
|
|
- "sigstore:${{ inputs.sigstore }}"
|
|
|
|
- name: Report attestation prober failure
|
|
if: ${{ failure() }}
|
|
uses: masci/datadog@a3f481d2ed0f4e1edde2be2f564b94719d6d4bc2 # v1.9.3
|
|
with:
|
|
api-key: "${{ secrets.DATADOG_API_KEY }}"
|
|
service-checks: |
|
|
- check: "attestation-integration.actions.prober"
|
|
message: "${{ github.repository_owner }} failed prober check"
|
|
status: 2
|
|
host_name: github.com
|
|
tags:
|
|
- "catalog_service:${{ secrets.CATALOG_SERVICE }}"
|
|
- "service:${{ secrets.CATALOG_SERVICE }}"
|
|
- "stamp:${{ secrets.STAMP }}"
|
|
- "env:production"
|
|
- "repo:${{ github.repository }}"
|
|
- "team:${{ secrets.TEAM }}"
|
|
- "sigstore:${{ inputs.sigstore }}"
|