GitHub Pages publishes the whole repo: dev files and stray Jekyll pages
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- github
- Área
- devops
Línea de trabajo
El problema es que la compilación de GitHub Pages publica todos los archivos rastreados. Empieza en la raíz del repositorio, donde iría un _config.yml, y revisa sw.js para ver la lista de archivos que necesita el juego antes de excluir nada. Lee la sección Deployment de README.md y confirma que index.html es la única página que debe servirse. Está terminado cuando las rutas de los criterios de aceptación (package.json, tests/unit/ai.test.js, README.md, CHANGELOG.html) devuelven 404 en el sitio en vivo, el juego y cada archivo de sw.js siguen devolviendo 200 y el juego sigue funcionando sin conexión.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
GitHub Pages builds the site from the root of main with Jekyll, so every tracked file is published, not only the game. Dev files are served, and each Markdown file becomes an unlinked, GitHub-themed page titled "Static_Chess" that search engines can index next to the game.
Where
- Pages settings: source
main/(root), legacy (Jekyll) build - No
_config.ymland no.nojekyllin the repository root index.html:1(the only page that is meant to be the site)
Details
Checked on the live site at 0144de7. All of these return 200:
| URL path | What it is |
|---|---|
/package.json, /package-lock.json (203 KB), /eslint.config.mjs |
dev tooling |
/tests/unit/ai.test.js, /tests/helpers/load-game.js (and the rest of tests/) |
test suite |
/README.md, /CHANGELOG.md, /docs/ARCHITECTURE.md |
raw Markdown |
/CHANGELOG.html, /docs/ARCHITECTURE.html, /docs/ROADMAP.html, /docs/RELEASE.html, /releases/, /releases/RELEASE_NOTES_v0.1.0.html, /releases/RELEASE_NOTES_v0.2.0.html, /releases/RELEASE_GUIDE_v0.1.0.html |
Jekyll-rendered pages |
The rendered pages use GitHub's default theme, not the game's styles. Their heading is the repository name Static_Chess, their <title> ends in | Static_Chess, and each one requests /Static_Chess/favicon.ico, which is a 404. Nothing on the game page links to them.
Nothing sensitive is exposed: the repository is public and these files are the same ones visible on GitHub.
Impact
- Search engines can index eight off-brand pages and the raw Markdown as part of the site.
- Every push to
mainruns a Jekyll build over files that are not part of the game. - Anything added to the repository later is published automatically, whether or not it was meant to be.
Steps to reproduce
- Open
https://tmhsdigital.github.io/Static_Chess/CHANGELOG.html. - Open
https://tmhsdigital.github.io/Static_Chess/package-lock.json.
Suggested fix
Smallest change: add a _config.yml at the repository root that excludes everything that is not the game, for example:
exclude:
- README.md
- CHANGELOG.md
- docs
- releases
- tests
- package.json
- package-lock.json
- eslint.config.mjs
Alternative: deploy with a GitHub Actions workflow that uploads only index.html, css/, js/, assets/, manifest.webmanifest and sw.js, and switch the Pages source to "GitHub Actions". This is more work and needs a settings change by a maintainer, but it publishes an explicit list instead of an exclusion list.
Acceptance criteria
-
/package.json,/package-lock.json,/tests/unit/ai.test.js,/README.mdand/CHANGELOG.htmlreturn 404 on the live site - The game at
/and every file listed insw.jsstill return 200 - The game still installs and opens offline
Getting started
- Relevant files:
index.html,sw.js(the list of files the game needs),README.md(Deployment section) - How to run tests:
npm test,npm run lint,npm run format - Related docs: GitHub Pages documentation on configuring Jekyll and on custom workflows
Filed by repo-audit/pages-audit at 0144de7. Severity: low. Effort: S. audit-key: enhancement|index.html|pages-published-files
- Lenguaje dominante
- JavaScript
- Estrellas
- 4
- Forks
- 2
- Merge medio
- 4 h 8 min
- PR fusionados (30 d)
- 1
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de TMHSDigital/Static_Chess
-
documentation good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
TMHSDigital/Static_Chess#79 ·
-
enhancement good first issue severity: low
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
TMHSDigital/Static_Chess#77 ·
-
enhancement good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
TMHSDigital/Static_Chess#76 ·
-
enhancement good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
TMHSDigital/Static_Chess#72 ·
-
documentation good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
TMHSDigital/Static_Chess#49 ·
Todos los issues de TMHSDigital/Static_Chess
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
discovery:other factory-active task-identify-harness-labels-done task-identify-issue-type-done
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
vercel/ai#25068 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
needs-triage typo
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
llm-d-incubation/llm-d-scaling-manager#122 ·
Los mantenedores suelen responder en 1 día
-
create-strapi-app doesn't await writing license.txt, so a failed write skips its error handlingAbiertoflag: invalid template issue: bug severity: low source: cli status: pending reproduction version: 5
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
strapi/strapi#28637 · 1 comentario ·
Los mantenedores suelen responder en 2 días