diff --git a/.github/actions/constellation_create/action.yml b/.github/actions/constellation_create/action.yml index 8c59eed4b..0ab293929 100644 --- a/.github/actions/constellation_create/action.yml +++ b/.github/actions/constellation_create/action.yml @@ -164,7 +164,16 @@ runs: run: | echo "::group::cdbg deploy" chmod +x $GITHUB_WORKSPACE/build/cdbg - cdbg deploy --bootstrapper $GITHUB_WORKSPACE/build/bootstrapper + cdbg deploy \ + --bootstrapper "${{ github.workspace }}/build/bootstrapper" \ + --info logcollect=true \ + --info logcollect.github.actor="${{ github.triggering_actor }}" \ + --info logcollect.github.workflow="${{ github.workflow }}" \ + --info logcollect.github.run-id="${{ github.run_id }}" \ + --info logcollect.github.run-attempt="${{ github.run_attempt }}" \ + --info logcollect.github.ref-name="${{ github.ref_name }}" \ + --info logcollect.github.sha="${{ github.sha }}" \ + --info logcollect.github.runner-os="${{ runner.os }}" echo "::endgroup::" - name: Constellation init diff --git a/debugd/internal/debugd/logcollector/fields.go b/debugd/internal/debugd/logcollector/fields.go index dbd054097..3b43c598d 100644 --- a/debugd/internal/debugd/logcollector/fields.go +++ b/debugd/internal/debugd/logcollector/fields.go @@ -10,6 +10,15 @@ package logcollector // under the prefix "logcollect.". func InfoFields() (string, map[string]struct{}) { return "logcollect.", map[string]struct{}{ - "admin": {}, // the name of the person running the cdbg command + "admin": {}, // name of the person running the cdbg command + + // GitHub workflow information, see https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables + "github.actor": {}, + "github.workflow": {}, + "github.run-id": {}, + "github.run-attempt": {}, + "github.ref-name": {}, + "github.sha": {}, + "github.runner-os": {}, } }