Skip to content

Conversation

@walkero-gr
Copy link
Contributor

No description provided.

@walkero-gr walkero-gr merged commit 9e6bff1 into master Aug 16, 2025
3 checks passed
Comment on lines 20 to +27
# compile-spe:
# name: Build for PowerPC SPE cpus
# uses: ./.github/workflows/_compile.yml
# with:
# git_tag: ${{ github.event.release.tag_name }}
# gcc: 6
# spe: "yes"
compile-spe:
name: Build for PowerPC SPE cpus
uses: ./.github/workflows/_compile.yml
with:
git_tag: ${{ github.event.release.tag_name }}
gcc: 6
spe: "yes"
secrets: inherit

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 2 months ago

To fix the problem, add an explicit permissions block to the workflow file. This can be done at the top level (applies to all jobs) or at the job level (for more granular control). The minimal starting point is to set permissions: {} at the workflow level, which disables all default permissions for the GITHUB_TOKEN. If any jobs require specific permissions (e.g., to read repository contents or create releases), those can be added as needed. In this case, since the jobs appear to only build and send notifications, the minimal block is likely sufficient. The change should be made at the top of the file, after the name and before on.


Suggested changeset 1
.github/workflows/makeRelease.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/makeRelease.yml b/.github/workflows/makeRelease.yml
--- a/.github/workflows/makeRelease.yml
+++ b/.github/workflows/makeRelease.yml
@@ -1,3 +1,4 @@
+permissions: {}
 name: Make a new release
 
 on:
EOF
@@ -1,3 +1,4 @@
permissions: {}
name: Make a new release

on:
Copilot is powered by AI and may make mistakes. Always verify output.
Comment on lines 28 to 37

# announcements:
# needs: [compile-ppc, compile-spe]
# name: Notify on Discord on successful release
# runs-on: ubuntu-latest
# steps:
# - name: Notify on Discord on successful release
# uses: hunghg255/action-notifications@master
# with:
# discord_webhook: https://discord.com/api/webhooks/${{ secrets.DISCORD_ANNOUNCEMENTS_ID }}/${{ secrets.DISCORD_ANNOUNCEMENTS_TOKEN }}
# title: "clib4 ${{ github.event.release.tag_name }} released"
# description: "Check it out at: ${{ github.event.release.html_url }}"
announcements:
needs: [compile-ppc, compile-spe]
name: Notify on Discord on successful release
runs-on: ubuntu-latest
steps:
- name: Notify on Discord on successful release
uses: hunghg255/action-notifications@master
with:

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 2 months ago

To fix the problem, you should add a permissions block to the workflow file .github/workflows/makeRelease.yml. This block can be added at the top level (applies to all jobs) or at the job level (applies to individual jobs). The best way is to add it at the top level, just below the name and before the on block, to ensure all jobs inherit the least privilege unless overridden. For a release workflow that builds artifacts and sends notifications, the minimal permissions required are typically contents: read (to read repository contents) and possibly pull-requests: write if you create or update pull requests, but in this case, only reading contents is likely needed. If any job requires more permissions, you can override at the job level. For now, add:

permissions:
  contents: read

just after the name: line.

Suggested changeset 1
.github/workflows/makeRelease.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/makeRelease.yml b/.github/workflows/makeRelease.yml
--- a/.github/workflows/makeRelease.yml
+++ b/.github/workflows/makeRelease.yml
@@ -1,3 +1,5 @@
+permissions:
+  contents: read
 name: Make a new release
 
 on:
EOF
@@ -1,3 +1,5 @@
permissions:
contents: read
name: Make a new release

on:
Copilot is powered by AI and may make mistakes. Always verify output.
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.

1 participant