Skip to content

Workflow permissions per Scorecard recommendations#87

Merged
nosborn merged 1 commit intomasterfrom
workflow-permissions
Jun 12, 2025
Merged

Workflow permissions per Scorecard recommendations#87
nosborn merged 1 commit intomasterfrom
workflow-permissions

Conversation

@nosborn
Copy link
Copy Markdown
Owner

@nosborn nosborn commented Jun 12, 2025

No description provided.

Copilot AI review requested due to automatic review settings June 12, 2025 06:09
@nosborn nosborn merged commit 9ed1a59 into master Jun 12, 2025
4 checks passed
@nosborn nosborn deleted the workflow-permissions branch June 12, 2025 06:13
Copy link
Copy Markdown

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 updates workflow permissions to comply with Scorecard recommendations by reducing global permissions and elevating permissions only for specific jobs.

  • Global "contents" permission is changed from write to read in the workflows
  • Job-level permissions remain set to write for required actions

Reviewed Changes

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

File Description
.github/workflows/versioning.yml Global permissions updated (contents set to read) and job-level permissions set explicitly
.github/workflows/release.yml Global permissions updated (contents set to read) and job-level permissions set explicitly

permissions:
contents: write
pull-requests: write
contents: read
Copy link

Copilot AI Jun 12, 2025

Choose a reason for hiding this comment

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

The global permissions block is mixing list item syntax with mapping syntax. Consider unifying the format (preferably using mapping syntax) to avoid potential YAML parsing or misconfiguration issues.

Copilot uses AI. Check for mistakes.

permissions:
contents: write
contents: read
Copy link

Copilot AI Jun 12, 2025

Choose a reason for hiding this comment

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

The global permissions block uses mixed syntaxes, which could lead to configuration issues. Please refactor to a consistent mapping format for clarity and reliability.

Suggested change
contents: read
contents:
read

Copilot uses AI. Check for mistakes.
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