Skip to content

Improve notifications attestation msg  #249

@migmartri

Description

@migmartri

Currently, Slack, Discord and Email integrations show the full attestation. As explained here #248, that's problematic especially now with the inline tasks.

We'd like to instead push notifications that include a friendly version of the attestation, potentially something similar to the output of workflow describe

chainloop wf run describe --id 1c9ddc06-ab14-432c-9bb7-0daee1be3699 
┌─────────────────────────────────────────────────────────────────────────────────────┐        
│ Workflow                                                                            │        
├────────────────┬────────────────────────────────────────────────────────────────────┤        
│ ID             │ ca6d9718-fa49-4a20-9db9-a82080e79632                               │        
│ Name           │ release                                                            │               
│ Team           │ core                                                               │
│ Project        │ bedrock                                                            │
├────────────────┼────────────────────────────────────────────────────────────────────┤
│ Workflow Run   │                                                                    │
├────────────────┼────────────────────────────────────────────────────────────────────┤         
│ ID             │ 1c9ddc06-ab14-432c-9bb7-0daee1be3699                               │ 
│ Initialized At │ 10 Jul 23 12:42 UTC                                                │                                                 
│ Finished At    │ 10 Jul 23 12:56 UTC                                                │                   
│ State          │ success                                                            │                                                 
│ Runner Link    │ https://github.com/chainloop-dev/chainloop/actions/runs/5508160429 │                                                   
├────────────────┼────────────────────────────────────────────────────────────────────┤                                                   
│ Statement      │                                                                    │                                                   
├────────────────┼────────────────────────────────────────────────────────────────────┤                 
│ Payload Type   │ application/vnd.in-toto+json                                       │         
│ Verified       │ false                                                              │                 
└────────────────┴────────────────────────────────────────────────────────────────────┘                 
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Materials                                                                                                                                                                                  │
├──────────────────────────────────────────────┬─────────────────────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ NAME                                         │ TYPE                │ VALUE                                                                                                                 │
├──────────────────────────────────────────────┼─────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ artifact-cas-image                           │ CONTAINER_IMAGE     │ ghcr.io/chainloop-dev/chainloop/artifact-cas@sha256:d3dd809bf58d7ea4b8e6b5a181762ddf56d2ba6e4b7de805f4e7610c8de3ae61  │
│ artifact-cas-linux-amd64                     │ ARTIFACT            │ artifact-cas@sha256:1c297420b9b6c7a02c1d757d34625a99c063633c35acc9a2e8e91935a9547682                                  │
│ chainloop-plugin-discord-webhook-linux-amd64 │ ARTIFACT            │ chainloop-plugin-discord-webhook@sha256:53d02e4c34db4212f6de4a3a83d518a8e55fd12b76ca36fca58c27a01589d7de              │
│ cli-linux-amd64                              │ ARTIFACT            │ chainloop@sha256:771488e78c1cd3dffaf4f8e3ee8a2b6384d18c3378d15b9d1b652352994de5f8                                     │
│ control-plane-image                          │ CONTAINER_IMAGE     │ ghcr.io/chainloop-dev/chainloop/control-plane@sha256:1623ff0150e7ae3f0d366f43288437558332c4ff03efefe2a20da4829a1733e4 │
│ control-plane-linux-amd64                    │ ARTIFACT            │ control-plane@sha256:d6921d440834bea9a56487c8857be0711190d2210094088b39f7666d3a62152b                                 │
│ sbom-artifact-cas                            │ SBOM_CYCLONEDX_JSON │ sbom.cas.cyclonedx.json@sha256:5260e370eb460ca4f9859cedfa0c266334e2806190242ae5df2420ee607b6e5e                       │
│ sbom-control-plane                           │ SBOM_CYCLONEDX_JSON │ sbom.cp.cyclonedx.json@sha256:b7aa65ef7ab4aea0afa3225b287b6f6f52a2c1ade80fd774f04cd46df3f085ce                        │
└──────────────────────────────────────────────┴─────────────────────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
┌────────────────────────────────────────────────────────────────────┐                         
│ Environment Variables                                              │                                 
├─────────────────────────┬──────────────────────────────────────────┤                         
│ NAME                    │ VALUE                                    │                                         
├─────────────────────────┼──────────────────────────────────────────┤                                 
│ GITHUB_ACTOR            │ migmartri                                │                         
│ GITHUB_REF              │ refs/tags/v0.13.0                        │                                         
│ GITHUB_REPOSITORY       │ chainloop-dev/chainloop                  │                                 
│ GITHUB_REPOSITORY_OWNER │ chainloop-dev                            │                                 
│ GITHUB_RUN_ID           │ 5508160429                               │                                 
│ GITHUB_SHA              │ 17c0867e1e34d873496042ccc1b039da5ffe05fa │
│ RUNNER_NAME             │ GitHub Actions 2                         │
│ RUNNER_OS               │ Linux                                    │
└─────────────────────────┴──────────────────────────────────────────┘

This task is about

  • Crafting a summary template that can be used in any integration
  • Migrate Discord/Slack and email plugins to it.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions