surshar / claude-code
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.
Built by Anthropic · github.com/anthropics
Automated security fix generated by Orbis Security AI Co-authored-by: Ubuntu <ubuntu@ip-172-31-32-15.us-west-2.compute.internal>
| @@ -38,10 +38,11 @@ | ||
| 38 | 38 | if: always() |
| 39 | 39 | env: |
| 40 | 40 | STATSIG_API_KEY: ${{ secrets.STATSIG_API_KEY }} |
| 41 | + ISSUE_NUMBER: ${{ github.event.issue.number || inputs.issue_number }} | |
| 42 | + REPO: ${{ github.repository }} | |
| 43 | + TRIGGERED_BY: ${{ github.event_name }} | |
| 44 | + WORKFLOW_RUN_ID: ${{ github.run_id }} | |
| 41 | 45 | run: | |
| 42 | - ISSUE_NUMBER=${{ github.event.issue.number || inputs.issue_number }} | |
| 43 | - REPO=${{ github.repository }} | |
| 44 | - | |
| 45 | 46 | if [ -z "$STATSIG_API_KEY" ]; then |
| 46 | 47 | echo "STATSIG_API_KEY not found, skipping Statsig logging" |
| 47 | 48 | exit 0 |
| @@ -51,7 +52,8 @@ | ||
| 51 | 52 | EVENT_PAYLOAD=$(jq -n \ |
| 52 | 53 | --arg issue_number "$ISSUE_NUMBER" \ |
| 53 | 54 | --arg repo "$REPO" \ |
| 54 | - --arg triggered_by "${{ github.event_name }}" \ | |
| 55 | + --arg triggered_by "$TRIGGERED_BY" \ | |
| 56 | + --arg workflow_run_id "$WORKFLOW_RUN_ID" \ | |
| 55 | 57 | '{ |
| 56 | 58 | events: [{ |
| 57 | 59 | eventName: "github_duplicate_comment_added", |
| @@ -60,7 +62,7 @@ | ||
| 60 | 62 | repository: $repo, |
| 61 | 63 | issue_number: ($issue_number | tonumber), |
| 62 | 64 | triggered_by: $triggered_by, |
| 63 | - workflow_run_id: "${{ github.run_id }}" | |
| 65 | + workflow_run_id: $workflow_run_id | |
| 64 | 66 | }, |
| 65 | 67 | time: (now | floor | tostring) |
| 66 | 68 | }] |