Skip to content

Add release workflow#68

Merged
kearfy merged 1 commit intomainfrom
micha/release-workflow
Feb 19, 2026
Merged

Add release workflow#68
kearfy merged 1 commit intomainfrom
micha/release-workflow

Conversation

@kearfy
Copy link
Member

@kearfy kearfy commented Feb 19, 2026

No description provided.

Comment on lines +10 to +17
name: semver
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2

release:

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: {contents: read}

Copilot Autofix

AI 14 days ago

In general, this should be fixed by explicitly specifying a minimal permissions block for any job that currently relies on implicit repository defaults. For the semver job, it only needs to read repository contents to run actions/checkout and perform semver checks, so contents: read is sufficient.

Concretely, in .github/workflows/release.yml, we will add a permissions section under the semver job (around lines 10–12), parallel to how the release job already declares permissions. The block will set contents: read, which is the minimal permission for checking out the repository. No changes to the release job, steps, or any other files are needed, and no new imports or methods are required.

Suggested changeset 1
.github/workflows/release.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/release.yml b/.github/workflows/release.yml
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -9,6 +9,8 @@
   semver:
     name: semver
     runs-on: ubuntu-latest
+    permissions:
+      contents: read
     steps:
       - uses: actions/checkout@v4
       - name: Check semver
EOF
@@ -9,6 +9,8 @@
semver:
name: semver
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Check semver
Copilot is powered by AI and may make mistakes. Always verify output.
@kearfy kearfy merged commit 611a0ee into main Feb 19, 2026
7 checks passed
@kearfy kearfy deleted the micha/release-workflow branch February 19, 2026 12:34
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