Skip to content

ci: add monthly PAT expiry reminder workflow#132

Merged
patchloom-release[bot] merged 1 commit into
mainfrom
ci/pat-expiry-reminder
Jun 18, 2026
Merged

ci: add monthly PAT expiry reminder workflow#132
patchloom-release[bot] merged 1 commit into
mainfrom
ci/pat-expiry-reminder

Conversation

@SebTardif

Copy link
Copy Markdown
Contributor

Adds a scheduled GitHub Actions workflow that checks whether the
VSCE_PAT Azure DevOps token is within 30 days of expiry. When it is,
the workflow auto-creates a GitHub issue with step-by-step rotation
instructions.

How it works:

  • Runs on the 1st of every month at noon UTC (also supports workflow_dispatch)
  • Compares today's date against VSCE_PAT_EXPIRES (hardcoded in the workflow)
  • If <= 30 days remain, creates an issue labeled token-expiry with rotation steps
  • Skips issue creation if an open token-expiry issue already exists
  • Includes harden-runner, concurrency group, and timeout

After rotating the PAT, update the VSCE_PAT_EXPIRES date in
.github/workflows/pat-expiry.yml so the next check uses the new expiry.

Closes #72

Runs on the 1st of every month. Creates an issue with the
token-expiry label when VSCE_PAT is within 30 days of expiration.
Skips if an open issue already exists.

The VSCE_PAT_EXPIRES env var must be updated after each rotation.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
@patchloom-release patchloom-release Bot enabled auto-merge (squash) June 18, 2026 04:36
@patchloom-release patchloom-release Bot merged commit 049d884 into main Jun 18, 2026
19 checks passed
@patchloom-release patchloom-release Bot deleted the ci/pat-expiry-reminder branch June 18, 2026 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: PAT rotation reminders (VSCE_PAT + OVSX_PAT)

1 participant