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

Support for SLSA GHA #744

Open
laurentsimon opened this issue Mar 20, 2024 · 3 comments
Open

Support for SLSA GHA #744

laurentsimon opened this issue Mar 20, 2024 · 3 comments

Comments

@laurentsimon
Copy link
Contributor

See cli/cli#8698 for required code changes

@laurentsimon
Copy link
Contributor Author

@ramonpetgrave64

@ramonpetgrave64
Copy link
Contributor

Example provenance, which is a sigtore bundle

decoded DSEE Envelope payload:

{
  "_type": "https://in-toto.io/Statement/v1",
  "subject": [
    {
      "name": "app.jar",
      "digest": {
        "sha256": "bc2153c2e6a9b03505e7f99ed126c47e6844accc6c9a013317182ba746854fcb"
      }
    }
  ],
  "predicateType": "https://slsa.dev/provenance/v1",
  "predicate": {
    "buildDefinition": {
      "buildType": "https://slsa-framework.github.io/github-actions-buildtypes/workflow/v1",
      "externalParameters": {
        "workflow": {
          "ref": "refs/heads/main",
          "repository": "https://github.com/ramonpetgrave/my-example-gradle-project",
          "path": ".github/workflows/build-with-github-attestation.yml"
        }
      },
      "internalParameters": {
        "github": {
          "event_name": "workflow_dispatch",
          "repository_id": "750993377",
          "repository_owner_id": "161096158"
        }
      },
      "resolvedDependencies": [
        {
          "uri": "git+https://github.com/ramonpetgrave/my-example-gradle-project@refs/heads/main",
          "digest": {
            "gitCommit": "cfc8c22bf4dd22e6fb7075f7422ae41ac9b43152"
          }
        }
      ]
    },
    "runDetails": {
      "builder": {
        "id": "https://github.com/actions/runner/github-hosted"
      },
      "metadata": {
        "invocationId": "https://github.com/ramonpetgrave/my-example-gradle-project/actions/runs/8930831141/attempts/1"
      }
    }
  }
}

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

No branches or pull requests

2 participants