Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip - resolve cmd path and calc hash - need testng #266

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

colek42
Copy link
Member

@colek42 colek42 commented Jun 6, 2024

This add digest info to the commandrun attestation:

{"type": "https://witness.dev/attestations/command-run/v0.1",
        "attestation": {
          "cmd": [
            "echo",
            "hello"
          ],
          "programdigest": {
            "sha256": "1249cb79d82a1deba5f40d402d69628ba9f48d1b8baec9aeef50350230900723"
          },
          "cmdpath": "/bin/echo",
          "stdout": "hello\n",
          "exitcode": 0
        },
        "starttime": "2024-06-06T09:52:44.486807-05:00",
        "endtime": "2024-06-06T09:52:44.489955-05:00"
      },
      {
        "type": "https://witness.dev/attestations/product/v0.1",
        "attestation": {},
        "starttime": "2024-06-06T09:52:44.489994-05:00",
        "endtime": "2024-06-06T09:52:44.527855-05:00"
      }

We probably want to add a bunch of tests for edge cases before this gets merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant