Potential fix for code scanning alert no. 1: Workflow does not contain permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
xixu-meandCopilot Autofix powered by AI authored and GitHub committed 2025-07-11 17:49:37 +08:00
1 parent 417e7bbf07
commit 6a8c88930b
1 file changed
+4
+4
View File
@@ -5,6 +5,10 @@ on:
tags: tags:
- "v*" # Triggers on version tags like v1.0.0, v1.2.3, etc. - "v*" # Triggers on version tags like v1.0.0, v1.2.3, etc.
permissions:
contents: write
packages: write
jobs: jobs:
build-and-publish: build-and-publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest