Skip to content
Open
Show file tree
Hide file tree
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/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: ci

jobs:
lint-unit:
uses: sous-chefs/.github/.github/workflows/[email protected].5
uses: sous-chefs/.github/.github/workflows/[email protected].8
permissions:
actions: write
checks: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@

jobs:
conventional-commits:
uses: sous-chefs/.github/.github/workflows/[email protected].5
uses: sous-chefs/.github/.github/workflows/[email protected].8

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 5 days ago

To fix the issue, we should explicitly add a permissions block to the workflow file to limit the permissions of the GITHUB_TOKEN to the minimum required. Since the job runs a reusable workflow (sous-chefs/.github/.github/workflows/[email protected]), it is best practice to restrict top-level permissions in the calling workflow, unless more write permissions are required for functionality. As a safe default when uncertain, grant only read access to contents. The correct place for this is at the top level of the workflow file (alongside name and on), so that all jobs without their own permissions block will inherit these restricted permissions.

Suggested changeset 1
.github/workflows/conventional-commits.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/conventional-commits.yml b/.github/workflows/conventional-commits.yml
--- a/.github/workflows/conventional-commits.yml
+++ b/.github/workflows/conventional-commits.yml
@@ -1,5 +1,7 @@
 ---
 name: conventional-commits
+permissions:
+  contents: read
 
 "on":
   pull_request:
EOF
@@ -1,5 +1,7 @@
---
name: conventional-commits
permissions:
contents: read

"on":
pull_request:
Copilot is powered by AI and may make mistakes. Always verify output.
2 changes: 1 addition & 1 deletion .github/workflows/prevent-file-change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@

jobs:
prevent-file-change:
uses: sous-chefs/.github/.github/workflows/[email protected].5
uses: sous-chefs/.github/.github/workflows/[email protected].8
secrets:
token: ${{ secrets.GITHUB_TOKEN }}

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: {}
Loading