Skip to content

docs: update CI/CD GitHub Actions guide to use environment-scoped secrets#550

Merged
shazron merged 2 commits into
mainfrom
copilot/update-github-actions-docs-secrets
May 8, 2026
Merged

docs: update CI/CD GitHub Actions guide to use environment-scoped secrets#550
shazron merged 2 commits into
mainfrom
copilot/update-github-actions-docs-secrets

Conversation

Copilot AI commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

REQUIRED Corresponding PR: adobe/generator-aio-app#298 that needs a release

The generated CI/CD workflows now use GitHub Actions environments (stage, production) to scope secrets natively, replacing the old convention of duplicating secrets under _STAGE/_PROD suffixed names in the repository secret store.

Documentation updates

  • Step 4 — instructions now point to Settings > Environments to create a stage environment and add secrets there; removes the outdated note saying environment secrets were unsupported
  • Step 4 table — all 14 secret names drop the _STAGE suffix (e.g. CLIENTID_STAGECLIENTID)
  • Step 5 — custom secret example updated (MY_CUSTOM_SECRET_STAGEMY_CUSTOM_SECRET in the stage environment)
  • Step 6 — instructs creating a production environment with the same secret names (environment scoping keeps values separate); removes the instruction to use _PROD suffix
  • Step 6 table — all 14 secret names drop the _PROD suffix
  • Step 7 — updated to set the environment field in the workflow YAML rather than inventing a new suffix

Before / After

# Before — repository-level secrets, suffix-differentiated
deploy:
  env:
    CLIENTID: ${{ secrets.CLIENTID_PROD }}

# After — environment-scoped secrets, no suffix needed
deploy:
  environment: production
  env:
    CLIENTID: ${{ secrets.CLIENTID }}

Copilot AI changed the title [WIP] Update GitHub Actions documentation for secrets with environments docs: update CI/CD GitHub Actions guide to use environment-scoped secrets Apr 27, 2026
Copilot AI requested a review from shazron April 27, 2026 10:22
@shazron
shazron merged commit cac64b0 into main May 8, 2026
2 checks passed
@shazron
shazron deleted the copilot/update-github-actions-docs-secrets branch May 8, 2026 13:28
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.

update github actions documentation for secrets with environments

3 participants