Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/mit-libraries-ruby-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

jobs:
shared:
uses: mitlibraries/.github/.github/workflows/ruby-shared-ci.yml@main
uses: mitlibraries/.github/.github/workflows/ruby-shared-ci.yml@6886f9574e40fab796c127d7e14d8db356c99124 # main

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}

Copilot Autofix

AI about 18 hours ago

Add an explicit top-level permissions block in .github/workflows/mit-libraries-ruby-ci.yml so the workflow does not rely on ambient defaults. For this CI workflow, the minimal safe baseline is typically read-only repository contents access: contents: read. Placing it at the workflow root applies to all jobs (including the reusable workflow call job) unless overridden, and preserves existing behavior while reducing risk.

Change location:

  • File: .github/workflows/mit-libraries-ruby-ci.yml
  • Region: after the on: trigger block and before jobs:.

No imports, methods, or additional definitions are required.

Suggested changeset 1
.github/workflows/mit-libraries-ruby-ci.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/mit-libraries-ruby-ci.yml b/.github/workflows/mit-libraries-ruby-ci.yml
--- a/.github/workflows/mit-libraries-ruby-ci.yml
+++ b/.github/workflows/mit-libraries-ruby-ci.yml
@@ -5,6 +5,9 @@
   pull_request:
     branches: [main]
 
+permissions:
+  contents: read
+
 jobs:
   shared:
     uses: mitlibraries/.github/.github/workflows/ruby-shared-ci.yml@6886f9574e40fab796c127d7e14d8db356c99124 # main
EOF
@@ -5,6 +5,9 @@
pull_request:
branches: [main]

permissions:
contents: read

jobs:
shared:
uses: mitlibraries/.github/.github/workflows/ruby-shared-ci.yml@6886f9574e40fab796c127d7e14d8db356c99124 # main
Copilot is powered by AI and may make mistakes. Always verify output.
Loading