Skip to content

Commit c683185

Browse files
authored
Use ephemeral Github token (#240)
1 parent 05bc611 commit c683185

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/auto-comment.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@ jobs:
99
add-comment:
1010
runs-on: ubuntu-latest
1111
steps:
12+
- name: Fetch ephemeral GitHub token
13+
id: fetch-token
14+
uses: elastic/ci-gh-actions/fetch-github-token@8a7604dfdd4e7fe21f969bfe9ff96e17635ea577 # v1.0.0
15+
with:
16+
vault-instance: "ci-prod"
1217
- name: Add comment
1318
uses: actions/github-script@v7
1419
with:
15-
github-token: ${{ secrets.GH_ACCESS_TOKEN }}
20+
github-token: ${{ steps.fetch-token.outputs.token }}
1621
script: |
1722
const { owner, repo } = context.repo;
1823
const commentBody = "**Deprecation warning:** This MCP server is deprecated and will only receive critical security updates going forward. It has been superseded by [Elastic Agent Builder](https://ela.st/agent-builder-docs)'s [MCP endpoint](https://ela.st/agent-builder-mcp), which is available in Elastic 9.2.0+ and Elasticsearch Serverless projects.";

0 commit comments

Comments
 (0)