Skip to content

feat(dependency-review): add optional GH_AW_GITHUB_TOKEN for label-triggered downstream workflows - #1012

Merged
fr4nc1sc0-r4m0n merged 2 commits into
mainfrom
copilot/use-ephemeral-token-for-reviewer
Apr 24, 2026
Merged

feat(dependency-review): add optional GH_AW_GITHUB_TOKEN for label-triggered downstream workflows#1012
fr4nc1sc0-r4m0n merged 2 commits into
mainfrom
copilot/use-ephemeral-token-for-reviewer

Conversation

Copilot AI commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Labels applied via the built-in GITHUB_TOKEN don't re-trigger other workflows (GitHub security model). This adds an optional GH_AW_GITHUB_TOKEN secret so callers can pass an ephemeral token (e.g. GitHub App installation token) for the add-labels safe output, enabling downstream label-event workflows to fire.

Changes

  • gh-aw-dependency-review.md — adds GH_AW_GITHUB_TOKEN: required: false to workflow_call.secrets; the compiled lock file already consumed this secret in its fallback chain (GH_AW_GITHUB_MCP_SERVER_TOKEN || GH_AW_GITHUB_TOKEN || GITHUB_TOKEN) but it was never passable from the caller
  • gh-aw-dependency-review.lock.yml / trigger-dependency-review.yml — regenerated via make compile
  • example.yml — commented-out GH_AW_GITHUB_TOKEN secret with usage note
  • README.md — new Secrets table documenting both secrets

Usage

jobs:
  run:
    uses: elastic/ai-github-actions/.github/workflows/gh-aw-dependency-review.lock.yml@v0
    secrets:
      COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
      GH_AW_GITHUB_TOKEN: ${{ secrets.GH_AW_GITHUB_TOKEN }}  # GitHub App token

…view workflow

Agent-Logs-Url: https://github.com/elastic/ai-github-actions/sessions/070ce442-43b6-427f-b2d0-dd38d3c2c323

Co-authored-by: fr4nc1sc0-r4m0n <215478872+fr4nc1sc0-r4m0n@users.noreply.github.com>
Copilot AI changed the title [WIP] Update dependency reviewer to use ephemeral token feat(dependency-review): add optional GH_AW_GITHUB_TOKEN for label-triggered downstream workflows Apr 24, 2026
Copilot AI requested a review from fr4nc1sc0-r4m0n April 24, 2026 09:31
@fr4nc1sc0-r4m0n
fr4nc1sc0-r4m0n marked this pull request as ready for review April 24, 2026 10:55
@fr4nc1sc0-r4m0n
fr4nc1sc0-r4m0n enabled auto-merge (squash) April 24, 2026 10:55

@fr4nc1sc0-r4m0n fr4nc1sc0-r4m0n left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fr4nc1sc0-r4m0n
fr4nc1sc0-r4m0n requested a review from v1v April 24, 2026 10:56
@github-actions github-actions Bot added the medium_boom Medium PR blast radius; likely benefits from human review label Apr 24, 2026
@fr4nc1sc0-r4m0n
fr4nc1sc0-r4m0n merged commit db36642 into main Apr 24, 2026
30 of 35 checks passed
@fr4nc1sc0-r4m0n
fr4nc1sc0-r4m0n deleted the copilot/use-ephemeral-token-for-reviewer branch April 24, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

medium_boom Medium PR blast radius; likely benefits from human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dependency Reviewer use Ephemeral Token

2 participants