-
Notifications
You must be signed in to change notification settings - Fork 84
Potential fix for code scanning alert no. 2: Workflow does not contain permissions #131
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
Draft
camembera
wants to merge
382
commits into
main
Choose a base branch
from
fix/ci-perms
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Raul Truta <[email protected]>
Signed-off-by: Raul Truta <[email protected]>
Signed-off-by: Raul Truta <[email protected]>
Signed-off-by: Raul Truta <[email protected]>
Signed-off-by: Raul Truta <[email protected]>
Signed-off-by: Raul Truta <[email protected]>
Signed-off-by: Raul Truta <[email protected]>
Gelato VRF guide added
Fix faucet typo
Upgradeable Contracts Guide
Signed-off-by: Oleksandr <[email protected]>
Add governance queueing function
Throttle logic moved outside subscribePriceFeedUpdates to prevent unnecessary re-creation of the throttled function Simplified trade direction check with a more compact ternary statement. Improved error handling with more specific error messages during trade execution. General readability improvements by reducing nested logic where possible and making variable assignments clearer. Signed-off-by: Marson Kotovi4 <[email protected]>
Add token whitelisting to vault proposal
… and identifying how much state they change
remove insane block filling script
fewer options
… how to actually make a custom build
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Camembera <[email protected]>
…n permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Camembera <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Potential fix for https://github.com/berachain/guides/security/code-scanning/2
To fix the problem, add a
permissions
block to the workflow to explicitly set the minimum required permissions for theGITHUB_TOKEN
. Since the workflow only checks out code, installs dependencies, and runs build/lint/formatting checks, it does not require any write permissions. The minimal required permission iscontents: read
. This block can be added at the top level of the workflow (applies to all jobs), or at the job level (applies only to the specific job). The best practice is to add it at the top level, immediately after thename
field, to ensure all jobs inherit the least privilege unless overridden.What to change:
.github/workflows/ci.yml
, add the following block after thename: CI
line and before theon:
block:Suggested fixes powered by Copilot Autofix. Review carefully before merging.