Skip to content

Commit

Permalink
emit traces workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joelmccracken committed Oct 28, 2024
1 parent 35d10b0 commit 6919dcd
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/trace-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Emit Workflow Traces

on:
workflow_run:
workflows:
- "**"
types:
- completed

permissions:
packages: write
contents: write
attestations: write
id-token: write
actions: write
checks: write

jobs:
send:
runs-on: ubuntu-latest
services:
otel-collector:
image: "ghcr.io/freckle/trace-workflow-action-otel-image:7aa520d43a29e6d028037bdeafe9e9882e695795"
ports:
- "4317:4317"
- "4318:4318"
env:
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}

steps:
- uses: actions/checkout@v4
- uses: ./
22 changes: 22 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'Trace Workflow Actions'
description: 'publishes execution traces of workflow actions.'
inputs:
github-commit-sha:
default: "${{ github.event.pull_request.head.sha || github.sha }}"
github-owner:
default: "${{ github.repository_owner }}"
github-repo:
default: "${{ github.repository }}"
github-run-id:
default: "${{ github.run_id }}"
github-token:
default: "${{ github.token }}"
runs:
using: 'docker'
image: "ghcr.io/freckle/trace-workflow-action-image:810e79fdfe2df6e8eca521394e27cea195ecf7d5"
env:
GITHUB_COMMIT_SHA: ${{ inputs.github-commit-sha }}
GITHUB_OWNER: ${{ inputs.github-owner }}
GITHUB_REPO: ${{ inputs.github-repo }}
GITHUB_RUN_ID: ${{ inputs.github-run-id }}
GITHUB_TOKEN: ${{ inputs.github-token }}

0 comments on commit 6919dcd

Please sign in to comment.