Skip to content

Use explicit immutable Actions, move permissions to top of workflow, add missing test file, add test workflow #5

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 7 commits into from
Apr 8, 2025

Conversation

aegilops
Copy link
Collaborator

@aegilops aegilops commented Apr 8, 2025

  • Some supply chain security work
  • Added missing test file
  • New tests workflow

@Copilot Copilot AI review requested due to automatic review settings April 8, 2025 15:59
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 aims to improve the workflow configuration by moving the permissions configuration to the top level and using explicit immutable action versions.

  • Reorders the YAML file to declare global permissions before the jobs.
  • Updates GitHub Actions versions (checkout from v3 to 4.2.2 and codeql-action/upload-sarif from v3 to 3.28.15).

@aegilops aegilops requested review from felickz and GeekMasher April 8, 2025 16:23
@aegilops aegilops changed the title Use explicit immutable Actions, move permissions to top of workflow Use explicit immutable Actions, move permissions to top of workflow, add missing test file Apr 8, 2025
@aegilops aegilops changed the title Use explicit immutable Actions, move permissions to top of workflow, add missing test file Use explicit immutable Actions, move permissions to top of workflow, add missing test file, add test workflow Apr 8, 2025
@aegilops aegilops requested a review from Copilot April 8, 2025 16:50
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 improves the repository’s workflow security by using explicit immutable action versions and moving permissions to the top of workflows, while also adding a new test workflow and a missing test file.

  • Added a new test workflow to run npm tests.
  • Updated workflow configurations in scorecard, publish, and eslint to use explicit action versions and defined permissions.

Reviewed Changes

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

File Description
.github/workflows/test.yml Added a new test workflow file with explicit action versions and permissions at the top.
.github/workflows/scorecard.yml Updated action version references for checkout, upload-artifact, and upload-sarif steps.
.github/workflows/publish.yml Moved permissions inside the publish job and updated action versions for consistency.
.github/workflows/eslint.yml Added a permissions block and updated checkout and upload-sarif action versions.
Files not reviewed (1)
  • testFile.json: Language not supported

Copy link
Member

@GeekMasher GeekMasher left a comment

Choose a reason for hiding this comment

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

LGTM

@GeekMasher GeekMasher merged commit 6f89aae into main Apr 8, 2025
6 checks passed
@aegilops aegilops deleted the workflow-maintenance branch April 8, 2025 19:20
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