Browse Source

Add logging

Christian Petersen 1 month ago
parent
commit
daf4368e52
1 changed files with 8 additions and 0 deletions
  1. 8 0
      .github/workflows/build-and-publish-release.yml

+ 8 - 0
.github/workflows/build-and-publish-release.yml

@@ -113,6 +113,14 @@ jobs:
           crane copy "$IMAGE_TAG" "$IMAGE_TAG_LATEST"
           crane copy "$IMAGE_TAG" "$IMAGE_TAG_VERSION"
 
+      - name: Log workflow context for provenance
+        run: |
+          echo "github.event_name=[${{ github.event_name }}]"
+          echo "github.run_started_at=[${{ github.run_started_at }}]"
+          echo "github.run_id=[${{ github.run_id }}]"
+          echo "github.run_attempt=[${{ github.run_attempt }}]"
+          echo "github.ref=[${{ github.ref }}]"
+
       - name: Sign image and attest SLSA provenance
         # Only sign tag-triggered releases; workflow_dispatch runs produce a
         # non-tag GITHUB_REF, so the Fulcio certificate identity would not