Skip to content

ci: improve security by using GHA environments#2335

Merged
dunglas merged 1 commit intomainfrom
ci/environments
Apr 8, 2026
Merged

ci: improve security by using GHA environments#2335
dunglas merged 1 commit intomainfrom
ci/environments

Conversation

@dunglas
Copy link
Copy Markdown
Member

@dunglas dunglas commented Apr 8, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 8, 2026 15:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves CI security by moving sensitive workflow jobs onto GitHub Actions Environments, enabling environment-scoped secrets/variables and (optionally) environment protection rules for deployment/publishing paths.

Changes:

  • Assigns a translate environment to the docs translation workflow job.
  • Assigns a website environment to the docs deployment workflow job.
  • Assigns a dockerhub environment to Docker image build/push jobs and switches DockerHub auth to vars.DOCKERHUB_USERNAME + secrets.DOCKERHUB_TOKEN.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
.github/workflows/translate.yaml Runs translation job in the translate environment.
.github/workflows/static.yaml Runs Docker publish-related jobs in the dockerhub environment and updates DockerHub credentials sources.
.github/workflows/docs.yaml Runs website deployment trigger in the website environment.
.github/workflows/docker.yaml Runs Docker build/push jobs in the dockerhub environment and updates DockerHub credentials sources.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

@henderkes henderkes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't actually see how the environments are defined, but CI is green, so good in my book.

@dunglas
Copy link
Copy Markdown
Member Author

dunglas commented Apr 8, 2026

They are defined in GitHub settings.

@henderkes
Copy link
Copy Markdown
Contributor

They are defined in GitHub settings.

I know, no permissions to read. But I think even if I did they'd be hidden.

@dunglas dunglas merged commit 6f559e1 into main Apr 8, 2026
148 of 151 checks passed
@dunglas dunglas deleted the ci/environments branch April 8, 2026 15:58
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.

3 participants