Skip to content

Conversation

@v1v
Copy link
Member

@v1v v1v commented Oct 8, 2025

No description provided.

Copilot AI review requested due to automatic review settings October 8, 2025 15:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a new GitHub Action that fetches ephemeral GitHub tokens from Vault using OIDC authentication. The action generates a unique role name based on the workflow reference and retrieves tokens dynamically.

  • Adds a new composite action for token retrieval from Vault
  • Creates documentation and test workflow for the new action
  • Updates the no-test workflow to exclude the new action from testing

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
elastic/token/action.yml Main action implementation for token retrieval from Vault
elastic/token/README.md Documentation and usage examples for the new action
.github/workflows/test-fetch-token.yml Test workflow to validate the token action
.github/workflows/no-test.yml Excludes elastic/token from no-test workflow

@v1v v1v force-pushed the feature/support-oidc-vault branch from ea32f85 to fc48e08 Compare October 8, 2025 15:30
Copilot AI review requested due to automatic review settings October 8, 2025 15:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comment on lines 6 to 8
skip-token-revoke:
description: 'Revoke the Vault token on exit'
default: false
Copy link

Copilot AI Oct 8, 2025

Choose a reason for hiding this comment

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

The 'skip-token-revoke' input is defined but never used in the action steps. Either implement the token revocation logic or remove this unused input parameter.

Suggested change
skip-token-revoke:
description: 'Revoke the Vault token on exit'
default: false

Copilot uses AI. Check for mistakes.
@v1v v1v added the changelog:feature When you add a new feature label Oct 8, 2025
@v1v v1v changed the title feat(test): create toekn on the fly feat(test): create token on the fly Oct 8, 2025
Copilot AI review requested due to automatic review settings October 8, 2025 15:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Copilot AI review requested due to automatic review settings October 8, 2025 15:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings October 10, 2025 07:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

echo "Workflow ref: $GITHUB_WORKFLOW_REF"

# Generate role name using SHA-256 hash of workflow_ref
WORKFLOW_HASH=$(echo -n "$GITHUB_WORKFLOW_REF" | sha256sum | cut -c1-12)
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

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

Using only the first 12 characters of a SHA-256 hash creates a risk of collisions. Consider using a longer hash (e.g., 16-20 characters) or the full hash to ensure uniqueness across different workflows.

Suggested change
WORKFLOW_HASH=$(echo -n "$GITHUB_WORKFLOW_REF" | sha256sum | cut -c1-12)
WORKFLOW_HASH=$(echo -n "$GITHUB_WORKFLOW_REF" | sha256sum | cut -c1-20)

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings October 10, 2025 16:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Copilot AI review requested due to automatic review settings October 10, 2025 16:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Copilot AI review requested due to automatic review settings October 10, 2025 16:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings October 10, 2025 16:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Copilot AI review requested due to automatic review settings October 10, 2025 16:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Copilot AI review requested due to automatic review settings October 10, 2025 16:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

id-token: write
steps:
- uses: actions/checkout@v5
- uses: ./elastic/github-token
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

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

The action path './elastic/token' is incorrect. It should be './elastic/github-token' to match the actual directory structure of the action being tested.

Suggested change
- uses: ./elastic/github-token
- uses: ./elastic/github-token

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:feature When you add a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant