mirror of
https://github.com/actions/attest-build-provenance.git
synced 2025-12-16 12:19:04 +00:00
Some checks failed
Check Transpiled JavaScript / Check dist/ (push) Failing after 2s
Continuous Integration / TypeScript Tests (push) Failing after 17s
Continuous Integration / Test attest-provenance action (push) Failing after 3s
Lint Codebase / Lint Codebase (push) Failing after 1s
CodeQL / Analyze (TypeScript) (push) Failing after 2s
Public-Good Sigstore Prober / prober (push) Failing after 1s
GitHub Sigstore Prober / prober (push) Failing after 0s
* Bump the actions-minor group with 2 updates
Bumps the actions-minor group with 2 updates: [super-linter/super-linter](https://github.com/super-linter/super-linter) and [masci/datadog](https://github.com/masci/datadog).
Updates `super-linter/super-linter` from 7.2.1 to 7.3.0
- [Release notes](https://github.com/super-linter/super-linter/releases)
- [Changelog](https://github.com/super-linter/super-linter/blob/main/CHANGELOG.md)
- [Commits](https://github.com/super-linter/super-linter/compare/v7.2.1...v7.3.0)
Updates `masci/datadog` from 1.7.1 to 1.9.1
- [Release notes](https://github.com/masci/datadog/releases)
- [Commits](a5d283e78e...6889e9d060)
---
updated-dependencies:
- dependency-name: super-linter/super-linter
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: actions-minor
- dependency-name: masci/datadog
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: actions-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Downgrade super-linter version in workflow
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eugene <108841108+ejahnGithub@users.noreply.github.com>
85 lines
2.8 KiB
YAML
85 lines
2.8 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@v2
|
|
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@v4
|
|
with:
|
|
path: "artifact"
|
|
|
|
- name: Report attestation prober success
|
|
if: ${{ success() }}
|
|
uses: masci/datadog@6889e9d060f5368eeee51f8a3f06a52f65d04da3 # v1.9.1
|
|
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@6889e9d060f5368eeee51f8a3f06a52f65d04da3 # v1.9.1
|
|
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 }}"
|