{"id":17986264,"url":"https://github.com/christophwurst/xmllint-action","last_synced_at":"2025-03-25T20:34:30.972Z","repository":{"id":39879518,"uuid":"226309226","full_name":"ChristophWurst/xmllint-action","owner":"ChristophWurst","description":"Github action for xmllint","archived":false,"fork":false,"pushed_at":"2023-10-18T16:59:09.000Z","size":14,"stargazers_count":14,"open_issues_count":0,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-15T19:31:53.242Z","etag":null,"topics":["cd","ci","cicd","docker","github-action","github-actions","xml","xmllint"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChristophWurst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2019-12-06T10:57:32.000Z","updated_at":"2024-05-06T09:59:43.000Z","dependencies_parsed_at":"2023-01-11T17:21:48.177Z","dependency_job_id":"8c2a5c01-9ecf-494b-9e04-5eba10da5fc6","html_url":"https://github.com/ChristophWurst/xmllint-action","commit_stats":{"total_commits":8,"total_committers":4,"mean_commits":2.0,"dds":0.5,"last_synced_commit":"e6015d3c31b5854a3ba9240564370bc7e61551a8"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristophWurst%2Fxmllint-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristophWurst%2Fxmllint-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristophWurst%2Fxmllint-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristophWurst%2Fxmllint-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChristophWurst","download_url":"https://codeload.github.com/ChristophWurst/xmllint-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222091339,"owners_count":16929582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cd","ci","cicd","docker","github-action","github-actions","xml","xmllint"],"created_at":"2024-10-29T18:29:11.098Z","updated_at":"2024-10-29T18:29:11.653Z","avatar_url":"https://github.com/ChristophWurst.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XML Lint Action\n\nThis action validates an XML files with a given XML schema using `xmllint`.\n\n## Inputs\n\n### `xml-file`\n\n**Required** The name of the source (`.xml`) file.\n\n### `xml-schema-file`\n\n**Required** The name of the schema (`.xsd`) file.\n\n### `xml-schema-type`\n\n**Optional** The type of schema to use (schema, relaxng, schematron). Default is schema.\n\n## Basic Usage Example\n\nThis basic example validates specified XML file specified using: `xml-file` using the schema file specified using: `xml-schema-file`.\n\n```yml\nname: Lint\n\non: [push]\n\njobs:\n  xml-linters:\n    runs-on: ubuntu-latest\n    steps:\n    - name: Checkout\n      uses: actions/checkout@v4\n    - name: Download schema\n      run: wget https://apps.nextcloud.com/schema/apps/info.xsd\n    - name: Validate info.xml using XML schema info.xsd\n      uses: ChristophWurst/xmllint-action@v1\n      with:\n        xml-file: ./appinfo/info.xml\n        xml-schema-file: ./info.xsd\n```\n\n### Using alternate schema formats\n\nTo use an alternate schema format supported by `xmllint` (i.e. relaxng or schematron), you should specify the format of your schema using the optional `xml-schema-type` parameter.\n\n## Extended Usage Example Enabling Annotations\n\nThis example does the same as the above example, in addition it configures the use of [korelstar/xmllint-problem-matcher@v1](https://github.com/korelstar/xmllint-problem-matcher), which matches any problems found by `xmllint` and present these as annotations with both errors and warnings emitted from `xmllint`, which are a nice alternative to digging through the log files.\n\n\n```yml\nname: Lint\n\non: [push]\n\njobs:\n  xml-linters:\n    runs-on: ubuntu-latest\n    steps:\n    - name: Checkout\n      uses: actions/checkout@v4\n    - name: Download schema\n      run: wget https://apps.nextcloud.com/schema/apps/info.xsd\n    - name: Enable annotations for validation errors and warnings\n      uses: korelstar/xmllint-problem-matcher@v1\n    - name: Validate info.xml using XML schema info.xsd\n      uses: ChristophWurst/xmllint-action@v1\n      with:\n        xml-file: ./appinfo/info.xml\n        xml-schema-file: ./info.xsd\n```\n\n## Referenes\n\n- `xmllint` comes from [libxml](http://www.xmlsoft.org/)\n- [GitHub: korelstar/xmllint-problem-matcher](https://github.com/korelstar/xmllint-problem-matcher)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristophwurst%2Fxmllint-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristophwurst%2Fxmllint-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristophwurst%2Fxmllint-action/lists"}