Skip to content

Rename OpenGood org references, add Claude Code, Neo4j packages#29

Merged
cjaehnen merged 1 commit intomainfrom
org-rename
Mar 17, 2026
Merged

Rename OpenGood org references, add Claude Code, Neo4j packages#29
cjaehnen merged 1 commit intomainfrom
org-rename

Conversation

@cjaehnen
Copy link
Copy Markdown
Contributor

No description provided.

jobs:
build:
uses: opengood-aio/central-workflows/.github/workflows/bash-bats-build.yml@main
uses: opengood-ai/central-workflows/.github/workflows/bash-bats-build.yml@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 1 month ago

To fix the issue, explicitly define permissions for the workflow so that the GITHUB_TOKEN has only the minimal scopes required. Since this workflow delegates all work to a reusable workflow and we have no evidence that it needs write access, the safest default is to grant read-only access to repository contents and packages at the workflow root. This will apply to all jobs (including this build job) unless they define their own permissions block.

Concretely, in .github/workflows/build.yml, insert a permissions block between the name: and the on: sections. Use:

permissions:
  contents: read
  packages: read

This follows GitHub’s recommended minimal starting point, aligns with the example in the problem description, and does not change existing CI logic—only the token’s allowed operations are restricted, which is unlikely to break a typical build/test workflow that should not be modifying repository state.

Suggested changeset 1
.github/workflows/build.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/build.yml b/.github/workflows/build.yml
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,5 +1,9 @@
 name: build
 
+permissions:
+  contents: read
+  packages: read
+
 on:
   push:
     branches:
EOF
@@ -1,5 +1,9 @@
name: build

permissions:
contents: read
packages: read

on:
push:
branches:
Copilot is powered by AI and may make mistakes. Always verify output.
@cjaehnen cjaehnen merged commit 7a88e85 into main Mar 17, 2026
4 checks passed
@cjaehnen cjaehnen deleted the org-rename branch March 17, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants