-
Notifications
You must be signed in to change notification settings - Fork 2
chore(ci): workflow permissions #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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 updates various CI workflow files to explicitly declare GitHub Actions permissions for enhanced security and clarity.
- Explicitly sets top‑level empty permissions blocks and job-specific permissions (e.g., pull-requests: write, packages: write, contents: write)
- Applies these changes consistently across multiple workflow files (pr-open.yml, pr-close.yml, merge.yml, csr-generator.yml, .schema-spy.yml, .pr-validate.yml, and .pr-close.yml)
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/pr-open.yml | Added top‑level empty permissions and per‑job permissions for validate and builds |
| .github/workflows/pr-close.yml | Added top‑level empty permissions and per‑job permissions for cleanup |
| .github/workflows/merge.yml | Introduced job-level permissions for package writes |
| .github/workflows/csr-generator.yml | Added top‑level empty permissions to the workflow |
| .github/workflows/.schema-spy.yml | Added top‑level empty permissions and job-level permissions for documentation generation |
| .github/workflows/.pr-validate.yml | Added top‑level empty permissions and updated job-level permissions for checks |
| .github/workflows/.pr-close.yml | Added top‑level empty permissions |
There was a problem hiding this 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 refines CI workflow configurations by introducing explicit permissions for various jobs to enhance security and maintainability.
- Updated workflow files (pr-open.yml, pr-close.yml, merge.yml, csr-generator.yml, .pr-validate.yml, .pr-close.yml) to include permission settings.
- Ensured that each job within the workflows receives the necessary minimal permissions.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/pr-open.yml | Added top-level and job-level permissions. |
| .github/workflows/pr-close.yml | Introduced explicit permissions for cleanup jobs. |
| .github/workflows/merge.yml | Specified permissions for deployment-related jobs. |
| .github/workflows/csr-generator.yml | Added top-level permissions to the workflow. |
| .github/workflows/.pr-validate.yml | Configured permissions for job-level validation. |
| .github/workflows/.pr-close.yml | Added top-level permissions for consistency. |
Thanks for the PR!
Deployments, as required, will be available below:
Please create PRs in draft mode. Mark as ready to enable:
After merge, new images are deployed in: