Skip to content

include permissions on all GitHub Actions workflows #4731

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

Merged
merged 1 commit into from
Apr 16, 2025

Conversation

penDerGraft
Copy link
Member

This PR adds explicit permissions to all workflow files.

@penDerGraft penDerGraft requested review from a team and Copilot April 10, 2025 22:17
Copy link

@Copilot 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 adds explicit permissions to all GitHub Actions workflow files to improve security and clarity of required access for each workflow.

  • Added permissions for contents, issues, and pull-requests where appropriate.
  • Introduced an empty permissions object for the release-notifier workflow.
  • Updated multiple workflow files to include explicit read/write permission settings.

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/release.yml Added "contents: write" to the release workflow.
.github/workflows/release-notifier.yml Added an empty permissions block.
.github/workflows/linter.yml Added "contents: read" for the linter workflow.
.github/workflows/copy-feature-issue.yml Included permissions for issues and contents.
.github/workflows/copy-documentation-issue.yml Added permissions for issues and contents; note extraneous dash.
.github/workflows/check-for-spammy-issues.yml Set permissions for issues, pull-requests, and contents.
.github/workflows/add-to-project.yml Added permissions for issues and contents.
Comments suppressed due to low confidence (1)

.github/workflows/copy-documentation-issue.yml:7

  • There is an extraneous dash on line 7 that might lead to YAML parsing errors; consider removing it to ensure the workflow configuration is valid.
   -

@bearcherian bearcherian reopened this Apr 16, 2025
@bearcherian bearcherian merged commit c5cf21b into main Apr 16, 2025
4 checks passed
@bearcherian bearcherian deleted the bp/update-workflow-permissions branch April 16, 2025 00:22
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.

2 participants