Skip to content

ci: migrate remaining workflows from PAT to GitHub App token#13629

Merged
ilhan007 merged 1 commit into
mainfrom
ci/app-token-other-workflows
Jun 3, 2026
Merged

ci: migrate remaining workflows from PAT to GitHub App token#13629
ilhan007 merged 1 commit into
mainfrom
ci/app-token-other-workflows

Conversation

@ilhan007
Copy link
Copy Markdown
Collaborator

@ilhan007 ilhan007 commented Jun 3, 2026

Follow-up to #13604.

Replaces secrets.UI5_WEBCOMP_BOT_GH_TOKEN with a per-run installation token from actions/create-github-app-token@v3.2.0 (pinned by SHA) in the four workflows that were intentionally left out of scope when the release workflow was migrated:

  • deploy-preview.yaml
  • reset-preview-deploy.yaml
  • reset-gh-pages.yaml
  • issue-monthly-report.yaml

Why

Completes the OSPO Hardening Control #4 migration: replace long-lived static credentials (PATs) with short-lived per-workflow tokens. App tokens are valid for ~1 hour and disappear when the run ends, drastically reducing the blast radius compared to the long-lived PAT.

After merge

Once each workflow has run green at least once, the UI5_WEBCOMP_BOT_GH_TOKEN secret can be deleted and the underlying PAT revoked.

UI5_WEBCOMP_BOT_NAME and UI5_WEBCOMP_BOT_EMAIL are kept — they are git identity strings, not credentials.

Required (already in place from #13604)

  • RELEASE_APP_ID repo secret
  • RELEASE_APP_PRIVATE_KEY repo secret
  • The sap-ui5-webcomponents-release GitHub App installed on this repo (only needs Contents/Issues/PRs write — no branch protection bypass changes required, since none of these workflows push to main)

Replace secrets.UI5_WEBCOMP_BOT_GH_TOKEN with a per-run installation
token from actions/create-github-app-token@v3.2.0 (pinned by SHA) in:

- deploy-preview.yaml
- reset-preview-deploy.yaml
- reset-gh-pages.yaml
- issue-monthly-report.yaml

Completes the OSPO Hardening Control #4 ("Replace long-lived secrets
with OIDC") migration started in #13604. release.yaml was migrated
there; this PR covers the four remaining workflows that were called
out as out-of-scope at the time.

Once merged and one run of each workflow is verified green, the
UI5_WEBCOMP_BOT_GH_TOKEN secret can be deleted and the underlying PAT
revoked. The UI5_WEBCOMP_BOT_NAME and UI5_WEBCOMP_BOT_EMAIL secrets
are kept — they are git identity strings, not credentials.
@ilhan007 ilhan007 merged commit d3eb719 into main Jun 3, 2026
10 of 11 checks passed
@ilhan007 ilhan007 deleted the ci/app-token-other-workflows branch June 3, 2026 10:56
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.

1 participant