Skip to content

ci: use the built-in token in the Hacktoberfest workflow - #1778

Merged
browniebroke merged 1 commit into
mainfrom
all-repos_autofix_ci/hacktoberfest-token
Oct 2, 2026
Merged

browniebroke merged 1 commit into
mainfrom
all-repos_autofix_ci/hacktoberfest-token

Conversation

@browniebroke

@browniebroke browniebroke commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

Committed via https://github.com/asottile/all-repos

Summary by Sourcery

Update the Hacktoberfest workflow to use the built-in GitHub token for labeling issues.

Enhancements:

  • Use the workflow’s built-in GitHub token with explicit contents and issues write permissions for Hacktoberfest labeling.

CI:

  • Update the Hacktoberfest workflow authentication and permissions.

@sourcery-ai

sourcery-ai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

The Hacktoberfest labeling job now uses the built-in GitHub token, with explicit contents and issue write permissions configured so the action can apply labels without a custom secret.

File-Level Changes

Change Details Files
Grant the workflow’s job the repository permissions required for labeling and switch the action to GitHub’s automatically provided token.
  • Add write access for repository contents and issues at the job level.
  • Replace the custom CPR_GITHUB_TOKEN secret with secrets.GITHUB_TOKEN.
.github/workflows/hacktoberfest.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

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Sourcery assessment

Needs a human reviewer. This changes the workflow's authorization boundary by giving the built-in token contents and issues write access to a third-party action. If that action or its invocation is wrong or compromised, it could modify repository contents or issue records; reverting only prevents future access and does not undo those changes.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@codecov

codecov Bot commented Oct 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.92%. Comparing base (5235a4a) to head (9cfd4b7).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1778   +/-   ##
=======================================
  Coverage   99.92%   99.92%           
=======================================
  Files          37       37           
  Lines        1333     1333           
  Branches       71       71           
=======================================
  Hits         1332     1332           
  Partials        1        1           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 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.

@browniebroke
browniebroke merged commit c6594a2 into main Oct 2, 2026
20 checks passed
@browniebroke
browniebroke deleted the all-repos_autofix_ci/hacktoberfest-token branch October 2, 2026 12:35

This branch was successfully deployed

1 active deployment
release — 9cfd4b7b Deployed Oct 2, 2026 by browniebroke via release #3920
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.

1 participant