-
-
Notifications
You must be signed in to change notification settings - Fork 81
Version exchange and logging #1361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
needs: build-current | ||
if: ${{ github.event_name != 'pull_request' && github.ref_name == 'dev' }} | ||
uses: ./.github/workflows/dev-deployment.yml | ||
secrets: inherit | ||
|
||
trigger-staging-deploy: |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 3 months ago
To fix the problem, add a permissions
block at the top level of the workflow file (just after the name
or on
block), which will apply to all jobs unless they override it. The minimal safe default is contents: read
, which grants read-only access to repository contents. If any job requires additional permissions, those can be added at the job level, but from the provided snippet, there is no evidence that more than read access is needed. The change should be made by inserting the following block after the name
line:
permissions:
contents: read
No additional methods, imports, or definitions are needed.
-
Copy modified lines R2-R3
@@ -1,2 +1,4 @@ | ||
name: Build current image | ||
permissions: | ||
contents: read | ||
on: |
defguard_version crate: