Skip to content

Conversation

@Dargon789
Copy link
Owner

@Dargon789 Dargon789 commented Oct 25, 2025

Summary by Sourcery

Tighten GitHub workflow permissions, update codecov behavior, and remove obsolete dependabot config

Enhancements:

  • Add read-only contents permissions to browser and tx-build GitHub workflows

CI:

  • Change codecov flag to include coverage reports not uploaded by default

Chores:

  • Remove the deprecated dependabot configuration file

Dargon789 and others added 7 commits October 23, 2025 10:38
Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>
…ain permissions (#64)

Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>
Chores:

Fix blank line indentation in .github/workflows/codeql.yml

Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>
…in permissions (#74)

To fix this issue, add a permissions block with least privilege at the root level of the workflow (just after the name: or the on: block), or scoped to the test-tx job if different jobs have distinct needs. For this workflow, since it primarily checks out code, installs dependencies, runs lint, coverage, and pushes coverage data (to Codecov, not back to GitHub), it only requires read access to repository contents. Thus, set permissions: contents: read at the workflow level, which restricts the GITHUB_TOKEN in all jobs unless overridden.

Edit .github/workflows/tx-build.yml:

Insert the following under the name: Tx line (before on:):
permissions:
  contents: read
No method, import, or other code is needed; this is a pure configuration change.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Summary by Sourcery
CI:

Add permissions.contents: read at the root of .github/workflows/tx-build.yml to grant only read access to repository contents

--------------------

#74 (comment)

--------------------

#74 (comment)

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.13%. Comparing base (ff99c86) to head (c4fd07e).
⚠️ Report is 8 commits behind head on master.

Additional details and impacted files
🚀 New features to boost your workflow:
❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

--------------------------------
Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@vercel
Copy link

vercel bot commented Oct 25, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
ethereumjs-webserver-omeq Ready Ready Preview Comment Oct 25, 2025 8:23am
workspace Ready Ready Preview Comment Oct 25, 2025 8:23am

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Oct 25, 2025

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Adds explicit read permissions to GitHub workflows, cleans up whitespace in codeql.yml, updates codecov to include missing coverage flags, and removes the dependabot config.

File-Level Changes

Change Details Files
Add explicit read permissions to workflows
  • Add permissions.contents: read to browser.yml
  • Add permissions.contents: read to tx-build.yml
.github/workflows/browser.yml
.github/workflows/tx-build.yml
Clean up whitespace in codeql.yml
  • Remove stray blank line before strategy block
  • Re-indent strategy section consistently
.github/workflows/codeql.yml
Adjust default codecov behavior
  • Change flag_coverage_not_uploaded_behavior from exclude to include
codecov.yml
Remove deprecated dependabot configuration
  • Delete .github/dependabot.yml file
.github/dependabot.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@snyk-io
Copy link

snyk-io bot commented Oct 25, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @Dargon789, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request primarily focuses on adjusting repository automation and checks. It removes the Dependabot configuration, which will cease automated dependency updates. Additionally, it tightens the Codecov integration by ensuring that missing coverage reports are explicitly included in status checks, making the build process more robust regarding code coverage reporting. It's worth noting that the PR title mentions codeql.yml, but this file was not modified in the changes.

Highlights

  • Dependabot Configuration Removal: The .github/dependabot.yml file has been entirely removed, discontinuing Dependabot's automated dependency updates for this repository.
  • Codecov Configuration Update: The codecov.yml file was modified to change the flag_coverage_not_uploaded_behavior setting from exclude to include. This means Codecov will now consider the absence of coverage reports as part of its status checks, rather than ignoring it.
Ignored Files
  • Ignored by pattern: .github/workflows/** (3)
    • .github/workflows/browser.yml
    • .github/workflows/codeql.yml
    • .github/workflows/tx-build.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes an obsolete Dependabot configuration and makes the Codecov configuration stricter. Both changes are positive. Removing the unused dependabot.yml is good repository maintenance. Changing flag_coverage_not_uploaded_behavior to include in codecov.yml makes the CI process more robust by failing the build if an expected coverage report is missing. There are no issues with the code changes themselves. However, please note that the pull request title ('Update codeql.yml') and the summary (which mentions changes to browser and tx-build workflows) do not align with the files actually changed in this PR. It would be beneficial to update the title and description to accurately reflect the removal of dependabot.yml and the update to codecov.yml for clarity and better history tracking.

@codecov
Copy link

codecov bot commented Oct 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (ai-config/master@5e816c2). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

Flag Coverage Δ
blockchain 91.61% <ø> (?)
common 98.43% <ø> (?)
devp2p 81.95% <ø> (?)
statemanager 77.00% <ø> (?)
trie 89.63% <ø> (?)
util 89.19% <ø> (?)
vm 79.85% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Dargon789 Dargon789 merged commit 02a4a61 into ai-config/master Oct 25, 2025
85 of 125 checks passed
@Dargon789 Dargon789 linked an issue Oct 29, 2025 that may be closed by this pull request
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.

#### Flow diagram for dynamic VM and blockchain test matrices in CI

2 participants