Skip to content

Commit

Permalink
Create gh-token.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Jun 5, 2025
1 parent dcf74b0 commit 636bfad
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/gh-token.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: GitHub Token Refresh

on:
schedule:
- cron: '*/5 * * * *' # Runs every 5 minutes
workflow_dispatch: # Allows manual triggering

permissions:
contents: write
id-token: write

jobs:
refresh-token:
name: Refresh GitHub Token
if: github.server_url != 'https://github.com'
uses: CSVD/centralized-actions/.github/workflows/upload-github-token.yml@main
with:
aws_region: 'us-gov-west-1'
secret_name: '/eks-cluster-deployment/github_token' # This matches the SECRET_NAME in app.py
github_app_id: ${{ vars.GH_APP_ID }}
github_app_installation_id: ${{ vars.GH_APP_INSTALLATION_ID }}
use_ecs_credentials: true
secrets:
github_app_pem_file: ${{ secrets.GH_APP_PEM_FILE }}

0 comments on commit 636bfad

Please sign in to comment.