Fix shell injection in pr-checker.yml + add DSCWoC issue migration script - #118
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Update issue templates (bug, feature, custom) with dscwoc labels - Update PR template with DSCWoC label checklist - Add DSCWoC label configuration file (.github/labels.yml) - Add auto-labeling workflow for PRs (.github/workflows/dscwoc-label-check.yml) - Add label migration guide (.github/DSCWOC_LABEL_MIGRATION.md) - Update CONTRIBUTING.md with DSCWoC scoring system and guidelines Co-authored-by: Suraj-kumar00 <123288511+Suraj-kumar00@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update existing issues with new labels and create new ones
feat: Migrate labels and templates from GSSoC/Hacktoberfest to DSCWoC
Feb 8, 2026
Replace the static migration guide with a runnable bash script that: - Creates all DSCWoC labels (dscwoc, level-1/2/3, task-based labels) - Removes hacktoberfest & gssoc2025 labels from all 9 labeled issues - Adds correct DSCWoC labels per issue (14 issues total) - Updates all 14 issue descriptions with clear project-aware context - Creates 5 new improvement issues (testing, error handling, a11y, perf, SM-2) - Deletes old labels after migration Co-authored-by: Suraj-kumar00 <123288511+Suraj-kumar00@users.noreply.github.com>
Co-authored-by: Suraj-kumar00 <123288511+Suraj-kumar00@users.noreply.github.com>
Copilot
AI
changed the title
feat: Migrate labels and templates from GSSoC/Hacktoberfest to DSCWoC
Migrate from GSSoC/Hacktoberfest to DSCWoC: labels, issue templates, and migration script
Feb 8, 2026
Suraj-kumar00
marked this pull request as ready for review
February 8, 2026 15:27
…th guide - Reverted issue templates, PR template, labels.yml, workflow, CONTRIBUTING.md back to their original state on main (removes 7 unnecessary file changes) - Added gh CLI install & auth instructions to the migration script header - Added runtime pre-check that validates gh is installed and authenticated - PR now contains only 1 file: scripts/dscwoc-migrate-issues.sh Co-authored-by: Suraj-kumar00 <123288511+Suraj-kumar00@users.noreply.github.com>
Copilot
AI
changed the title
Migrate from GSSoC/Hacktoberfest to DSCWoC: labels, issue templates, and migration script
Add DSCWoC issue migration script with gh CLI auth guide
Feb 8, 2026
The pr-checker workflow was directly interpolating the PR body text into
a bash script via "${{ github.event.pull_request.body }}". This caused
backtick-wrapped content (e.g. `dscwoc`, `level-1/2/3`) to be executed
as shell commands, leading to CI failures.
Fixed by moving the PR body to an env: variable, which is the
GitHub-recommended approach for handling untrusted input safely.
See: https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
Co-authored-by: Suraj-kumar00 <123288511+Suraj-kumar00@users.noreply.github.com>
Copilot
AI
changed the title
Add DSCWoC issue migration script with gh CLI auth guide
Fix shell injection in pr-checker.yml + add DSCWoC issue migration script
Feb 8, 2026
Suraj-kumar00
approved these changes
Feb 8, 2026
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
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.
Description
pr-checker.ymldirectly interpolates the PR body into a bash script via"${{ github.event.pull_request.body }}". Backtick-wrapped words in the PR description (e.g.`dscwoc`,`level-1/2/3`) are interpreted as command substitution, causingcommand not founderrors.Also adds a one-shot migration script for transitioning all 14 open issues from GSSoC/Hacktoberfest to DSCWoC labeling.
Issue Number
Changes Made
.github/workflows/pr-checker.yml— Move PR body from inline interpolation toenv:block (GitHub-recommended practice)scripts/dscwoc-migrate-issues.sh— Idempotent script that creates DSCWoC labels, removeshacktoberfest/gssoc2025labels, replacesLevel 1/2/3→level-1/2/3, updates all 14 issue descriptions with codebase-aware context, creates 5 new improvement issues, and deletes obsolete labels. IncludesghCLI install/auth pre-checks.Type Of Change
Screenshots or Videos
N/A
How Has This Been Tested?
bash -n scripts/dscwoc-migrate-issues.shsyntax validationenv:approachChecklist
Additional Information
The migration script is run once by the project admin after authenticating with
gh auth login. See script header for full install/auth instructions.Original prompt
Analyse all the open issue in this repositories and anaylise the entire codebase and based on the entire project first:
here is the context:
ROLE OF A MENTOR
MENTORS (PROJECT ADMINS) PLAY A KEY ROLE IN
DSCWOC BY GUIDING CONTRIBUTORS, MAINTAINING
PROJECT QUALITY, AND ENSURING A HEALTHY AND
INCLUSIVE OPEN-SOURCE ENVIRONMENT.
RESPONSIBILITIES OF A MENTOR
DEFINE CLEAR PROJECT GOALS AND CONTRIBUTION
SCOPE
MAINTAIN AN UP-TO-DATE AND DETAILED PROJECT
README
CREATE AND MANAGE GITHUB ISSUES
REVIEW PULL REQUESTS REGULARLY
PROVIDE CONSTRUCTIVE AND RESPECTFUL
FEEDBACK
PROJECT READINESS
THE REPOSITORY IS PUBLIC
THE PROJECT ALIGNS WITH DSCWOC DOMAINS
README INCLUDES:
PROJECT OVERVIEW
TECH STACK
SETUP AND INSTALLATION INSTRUCTIONS
CONTRIBUTION GUIDELINES
BEGINNER-FRIENDLY ISSUES ARE CLEARLY LABELED
ISSUE MANAGEMENT GUIDELINES
ASSIGN ISSUES ONLY AFTER A CONTRIBUTOR REQUESTS
THEM
DO NOT ASSIGN THE SAME ISSUE TO MULTIPLE
CONTRIBUTORS
UNASSIGN ISSUES IF CONTRIBUTORS REMAIN INACTIVE
FOR LONG PERIODS
ENSURE ISSUES ARE CLEAR, WELL-DEFINED, AND
ACHIEVABLE
PULL REQUEST REVIEW GUIDELINES
MENTORS SHOULD:
VERIFY CORRECTNESS AND RELEVANCE OF THE PR
ENSURE ORIGINALITY AND ABSENCE OF PLAGIARISM
CHECK CODE QUALITY AND DOCUMENTATION
REJECT SPAM, DUPLICATE, OR LOW-EFFORT PRS
REQUEST CHANGES POLITELY AND CLEARLY
COMMUNICATION GUIDELINES
MAINTAIN PROFESSIONAL AND RESPECTFUL
COMMUNICATION
ENCOURAGE BEGINNERS AND FIRST-TIME
CONTRIBUTORS
AVOID UNNECESSARY DELAYS IN RESPONSES
HANDLE CONFLICTS CALMLY AND FAIRLY
DSC WINTER OF CODE — PROJECT ADMIN MANUAL
The DSCWoC scoring system is quality-focused, transparent, and
beginner-friendly. Points are awarded only for meaningful, reviewed, and
merged contributions. Project Admins and Mentors are responsible for
maintaining fairness and consistency.
REQUIREMENT:
• Program Label: The PR must include the label “dscwoc”
• Difficulty Label: The PR must include exactly one difficulty label (level-1,
level-2, or level-3)
• Merge Status: The PR must be reviewed and merged by a mentor
or project admin
NOTES:
📌 Points are awarded only after the PR is merged.
📌 If a PR is not merged or is missing required labels, it receives 0 points.
ADMIN RULES
Do not change difficulty after work has started unless absolutely necessary
If difficulty is changed, clearly inform the contributor Avoid overusing
level-3; reserve it for genuinely complex work
Difficulty Description Points
Level-1 Beginner-friendly tasks 10
Level-2 Moderate complexity 20
Level-3
Advanced or complex
work
30
SCORING, ISSUES &
LEADERBOARD SYSTEM
Task-Based Issue Labels (Mandatory) :-
In addition to difficulty levels, every issue must include at least one task-based label
to describe the nature of work. ️ Standard Task Labels(When to use)
4.Beginner-Friendly Issue Labels (Strongly Recommended):- Admins are expected to actively support new contributors by tagging suitable issues. Admin Guidance:-
Ideal first contribution
limited scope and clear steps
Suitable for contributors new to the project
⭐Best Practices
Ensure clear problem statements and acceptance criteria Do not tag complex issues
as beginner-friendly Maintain a healthy mix of beginner and intermediate issues
Bonus Points
Consistent weekly contributions: +10
Exceptional contribution (mentor-approved): +10
Helping others (verified): +5
6.Manual Point Override:-In exceptional cases, Project Admins or Lead Mentors may
override the calculated score.
Override Rules
Must include a clear justification
Must be logged for transparency
Overrides are final
Label When to Use
bug Incorrect behavior, crashes, or logical errors
feature New functionality being added
ui/ux Interface or user experience improvements
enhancement Improving or extending existing functionality
documentation README updates, guides, or written explanations
refactor Code restructuring without behavior change
testing Adding or improving automated tests
7.MENTOR REVIEW POLICY:-
ALL PRS MUST BE REVIEWED FOR:
CODE QUALITY
BEST PRACTICES
ORIGINALITY
LOW-EFFORT, SPAM, OR COPIED PRS MUST BE REJECTED
8.LEADERBOARD SYSTEM
THE LEADERBOARD REFLECTS VERIFIED CONTRIBUTOR PROGRESS THROUGHOUT
THE PROGRAM.
CONTRIBUTORS ARE RANKED BASED ON:
LEADERBOARD UPDATES
9.ISSUE CREATION RULES
ISSUES ARE CREATED BY PROJECT ADMINS
NEW ISSUES MAY BE ADDED DURING THE PROGRAM
CONTRIBUTORS SHOULD NOT OPEN ISSUES UNLESS INSTRUCTED
CONTRIBUTORS MUST WORK ONLY ON MENTOR-ASSIGNED OR APPROVED
ISSUES
...
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.