{"id":43895596,"url":"https://github.com/thomas-chauvet/latex2pdf-action","last_synced_at":"2026-05-11T10:02:31.733Z","repository":{"id":58959398,"uuid":"313711713","full_name":"thomas-chauvet/latex2pdf-action","owner":"thomas-chauvet","description":"GitHub action to convert LaTeX document in PDF file","archived":false,"fork":false,"pushed_at":"2026-02-06T15:54:17.000Z","size":52,"stargazers_count":18,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-04-13T11:11:49.190Z","etag":null,"topics":["docker","github-actions","latex","pdf"],"latest_commit_sha":null,"homepage":"","language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thomas-chauvet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-11-17T18:45:47.000Z","updated_at":"2026-02-06T15:53:54.000Z","dependencies_parsed_at":"2023-01-04T12:31:07.322Z","dependency_job_id":null,"html_url":"https://github.com/thomas-chauvet/latex2pdf-action","commit_stats":{"total_commits":23,"total_committers":3,"mean_commits":7.666666666666667,"dds":0.4347826086956522,"last_synced_commit":"e9cf920bff4037cd56c9c0a28655718d59b4227e"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/thomas-chauvet/latex2pdf-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomas-chauvet%2Flatex2pdf-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomas-chauvet%2Flatex2pdf-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomas-chauvet%2Flatex2pdf-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomas-chauvet%2Flatex2pdf-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomas-chauvet","download_url":"https://codeload.github.com/thomas-chauvet/latex2pdf-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomas-chauvet%2Flatex2pdf-action/sbom","scorecard":{"id":882148,"data":{"date":"2025-08-11","repo":{"name":"github.com/thomas-chauvet/latex2pdf-action","commit":"e9cf920bff4037cd56c9c0a28655718d59b4227e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/thomas-chauvet/latex2pdf-action/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/thomas-chauvet/latex2pdf-action/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/thomas-chauvet/latex2pdf-action/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/thomas-chauvet/latex2pdf-action/test.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating ubuntu:bionic to ubuntu:bionic@sha256:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e43c98","Warn: downloadThenRun not pinned by hash: Dockerfile:6-9","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-24T08:36:46.281Z","repository_id":58959398,"created_at":"2025-08-24T08:36:46.281Z","updated_at":"2025-08-24T08:36:46.281Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32889972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","github-actions","latex","pdf"],"created_at":"2026-02-06T17:20:36.554Z","updated_at":"2026-05-11T10:02:31.728Z","avatar_url":"https://github.com/thomas-chauvet.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Test LaTeX to PDF](https://github.com/thomas-chauvet/latex2pdf-action/actions/workflows/test.yml/badge.svg)\n\n# latex2pdf-action\n\nGitHub action to convert LaTeX documents to PDF files using `LuaTeX`.\n\n## Features\n\n- Compile LaTeX documents to PDF using LuaTeX\n- Support for custom CTAN packages\n- Table of Contents (ToC) generation with double compilation\n- Based on lightweight TinyTeX distribution\n- Ubuntu 24.04 LTS base image for security and stability\n\n## Parameters\n\n- `output_dir`: use it to get the PDF file at a specific location at the end of the compilation.\n- `main_latex_file`: main LaTeX file to convert (e.g. `main.tex`).\n- `ctan_packages`: Extra packages from CTAN to install. List of packages available [here](https://mirror.ctan.org/systems/texlive/tlnet/archive). Each package must be separated by a space (e.g. \"moderncv xargs\").\n- `toc`: boolean to add ToC or not. Default `false`. It will compile the document twice to generate the ToC with `LuaTeX`.\n\n## Outputs\n\n- `time`: Timestamp of when the PDF compilation completed. Access it via `${{ steps.\u003cstep-id\u003e.outputs.time }}`.\n\n## Usage\n\nYou can refer to the [example](https://github.com/thomas-chauvet/latex2pdf-action/blob/main/.github/workflows/test.yml) attached in this repository.\n\nIn the example below we compile the document in PDF and upload as an artefact of the pipeline:\n\n```yml\nname: LaTeX to PDF\n\non:\n  push:\n    branches:\n      - main\n      - develop\n    tags:\n      - \"*\"\n  pull_request:\n    branches: [main]\n\njobs:\n  build_latex:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Set up Git repository\n        uses: actions/checkout@v4\n      - name: latex2pdf\n        id: compile-latex-document\n        uses: thomas-chauvet/latex2pdf-action@v2\n        with:\n          output_dir: output\n          main_latex_file: test.tex\n          ctan_packages: amsmath amsfonts lua-uni-algos\n      - name: Upload PDF to the workflow tab\n        id: upload-workflow-tab\n        uses: actions/upload-artifact@v4\n        with:\n          name: output\n          path: output/test.pdf\n```\n\nYou can find a more complete example in my [CV repository](https://github.com/thomas-chauvet/cv_latex) with everything to release the PDF document.\n\n## Development\n\n### Test locally\n\nBuild docker image:\n\n```bash\ndocker build -t latex2pdf .\n```\n\nRun the example:\n\n```bash\ndocker run \\\n  -e OUTPUT_DIR=\"output\" \\\n  -e MAIN_LATEX_FILE=\"test.tex\" \\\n  -e CTAN_PACKAGES=\"amsmath amsfonts lua-uni-algos\" \\\n  -v \"${PWD}/resources/test.tex\":\"/test.tex\" \\\n  -v \"${PWD}/output\":\"/output\" \\\n  latex2pdf\n```\n\n### Code Quality\n\nThis project uses pre-commit hooks to maintain code quality. Install them with:\n\n```bash\npip install pre-commit\npre-commit install\n```\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for more details.\n\n## Contributing\n\nContributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on how to contribute to this project.\n\n### Running Tests\n\nThe project includes automated tests that run on every push. You can see the test workflow in [.github/workflows/test.yml](.github/workflows/test.yml).\n\n## Notes\n\nThe Docker image used to compile documents is based on Ubuntu 24.04 LTS and the excellent work of [@Yihui](https://github.com/yihui) for [TinyTeX](https://github.com/yihui/tinytex). This allows the image to stay relatively small and use only what is needed.\n\n## License\n\nThis project is open source and available under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomas-chauvet%2Flatex2pdf-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomas-chauvet%2Flatex2pdf-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomas-chauvet%2Flatex2pdf-action/lists"}