{"id":49435352,"url":"https://github.com/zdk/dockadvisor-action","last_synced_at":"2026-04-29T16:39:50.566Z","repository":{"id":332583636,"uuid":"1134282464","full_name":"zdk/dockadvisor-action","owner":"zdk","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-14T14:09:33.000Z","size":629,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-14T17:59:50.625Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zdk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2026-01-14T14:04:30.000Z","updated_at":"2026-01-14T14:09:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zdk/dockadvisor-action","commit_stats":null,"previous_names":["zdk/dockadvisor-action"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zdk/dockadvisor-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdk%2Fdockadvisor-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdk%2Fdockadvisor-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdk%2Fdockadvisor-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdk%2Fdockadvisor-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zdk","download_url":"https://codeload.github.com/zdk/dockadvisor-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdk%2Fdockadvisor-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32435115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-04-29T16:39:49.434Z","updated_at":"2026-04-29T16:39:50.552Z","avatar_url":"https://github.com/zdk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dockadvisor GitHub Action\n\nA GitHub Action that analyzes and lints Dockerfiles for best practices, security issues, and potential problems using [Dockadvisor](https://github.com/deckrun/dockadvisor).\n\n## Features\n\n- Analyzes Dockerfiles for 60+ validation rules\n- Checks best practices, security, and syntax issues\n- Provides a quality score (0-100)\n- Creates GitHub annotations for each issue found\n- Configurable failure conditions\n- Fast and lightweight\n\n## Usage\n\n### Basic Example\n\n```yaml\nname: Dockerfile Lint\non: [push, pull_request]\n\njobs:\n  lint:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - name: Lint Dockerfile\n        uses: zdk/dockadvisor-action@v1\n        with:\n          dockerfile: 'Dockerfile'\n```\n\n### Advanced Example\n\n```yaml\nname: Dockerfile Lint\non: [push, pull_request]\n\njobs:\n  lint:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n\n      - name: Lint Dockerfile\n        id: dockadvisor\n        uses: zdk/dockadvisor-action@v1\n        with:\n          dockerfile: 'Dockerfile'\n          fail-on-error: 'true'\n          fail-on-warning: 'false'\n          minimum-score: '80'\n\n      - name: Check results\n        run: |\n          echo \"Score: ${{ steps.dockadvisor.outputs.score }}\"\n          echo \"Errors: ${{ steps.dockadvisor.outputs.errors }}\"\n          echo \"Warnings: ${{ steps.dockadvisor.outputs.warnings }}\"\n          echo \"Result: ${{ steps.dockadvisor.outputs.result }}\"\n```\n\n### Multiple Dockerfiles\n\n```yaml\nname: Lint All Dockerfiles\non: [push, pull_request]\n\njobs:\n  lint:\n    runs-on: ubuntu-latest\n    strategy:\n      matrix:\n        dockerfile:\n          - 'Dockerfile'\n          - 'Dockerfile.dev'\n          - 'docker/Dockerfile.test'\n    steps:\n      - uses: actions/checkout@v4\n\n      - name: Lint ${{ matrix.dockerfile }}\n        uses: zdk/dockadvisor-action@v1\n        with:\n          dockerfile: ${{ matrix.dockerfile }}\n          fail-on-error: 'true'\n          minimum-score: '75'\n```\n\n## Inputs\n\n| Input | Description | Required | Default |\n|-------|-------------|----------|---------|\n| `dockerfile` | Path to the Dockerfile to analyze | No | `Dockerfile` |\n| `fail-on-error` | Fail the action if errors are found | No | `false` |\n| `fail-on-warning` | Fail the action if warnings are found | No | `false` |\n| `minimum-score` | Minimum acceptable score (0-100). Fail if score is below this threshold | No | `0` |\n\n## Outputs\n\n| Output | Description |\n|--------|-------------|\n| `score` | The Dockerfile quality score (0-100) |\n| `errors` | Number of errors found |\n| `warnings` | Number of warnings found |\n| `result` | Overall result: `passed` or `failed` |\n\n## Validation Rules\n\nDockadvisor checks for 60+ validation rules including:\n\n- **FROM instruction**: Image reference validation, platform flags, stage names\n- **RUN instruction**: Command validation, mount flags, network flags\n- **WORKDIR**: Path validation\n- **EXPOSE**: Port format, range, and protocol validation\n- **CMD/ENTRYPOINT**: JSON array format validation\n- **ENV/ARG**: Key-value format, secret detection\n- **USER**: Format validation\n- **LABEL**: Key-value pair validation\n- **COPY/ADD**: Arguments validation\n- **Global checks**: Casing consistency, duplicate stages, undefined variables, secrets\n\n## Scoring System\n\nThe score is calculated as:\n\n```\nScore = 100 - (errors × 15 + warnings × 5)\n```\n\n- Fatal rules result in a score of 0\n- Errors: -15 points each\n- Warnings: -5 points each\n- Minimum score: 0\n\n## Examples of Issues Detected\n\n- Invalid image references in FROM\n- Missing required arguments\n- Exposed port format issues\n- Undefined variables\n- Duplicate stage names\n- Secrets in environment variables\n- Invalid JSON syntax in CMD/ENTRYPOINT\n- And many more...\n\n## GitHub Annotations\n\nThe action automatically creates GitHub annotations for each issue found, making it easy to see problems directly in your pull request or commit view.\n\n## License\n\nThis action uses [Dockadvisor](https://github.com/deckrun/dockadvisor), which is licensed under the Apache License 2.0.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## Support\n\nIf you encounter any issues or have questions, please [open an issue](https://github.com/zdk/dockadvisor-action/issues).\n\n## Related Projects\n\n- [Dockadvisor](https://github.com/deckrun/dockadvisor) - The underlying Dockerfile linter\n- [Hadolint](https://github.com/hadolint/hadolint) - Another popular Dockerfile linter\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzdk%2Fdockadvisor-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzdk%2Fdockadvisor-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzdk%2Fdockadvisor-action/lists"}