{"id":22929455,"url":"https://github.com/jamiemagee/scorecard-azure-pipelines-task","last_synced_at":"2026-07-18T19:00:54.313Z","repository":{"id":268025266,"uuid":"871767969","full_name":"JamieMagee/scorecard-azure-pipelines-task","owner":"JamieMagee","description":"Azure Pipelines Task for OpenSSF Scorecard","archived":false,"fork":false,"pushed_at":"2025-07-11T17:11:56.000Z","size":645,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-11T19:14:50.694Z","etag":null,"topics":["azure-devops","azure-devops-extension","azure-pipelines","azure-pipelines-task","openssf","openssf-scorecard","security"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/JamieMagee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-12T22:00:04.000Z","updated_at":"2025-07-11T17:11:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"53a962d5-4b89-4b23-9183-152d7c8c9960","html_url":"https://github.com/JamieMagee/scorecard-azure-pipelines-task","commit_stats":null,"previous_names":["jamiemagee/scorecard-azure-pipelines-task"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/JamieMagee/scorecard-azure-pipelines-task","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamieMagee%2Fscorecard-azure-pipelines-task","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamieMagee%2Fscorecard-azure-pipelines-task/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamieMagee%2Fscorecard-azure-pipelines-task/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamieMagee%2Fscorecard-azure-pipelines-task/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JamieMagee","download_url":"https://codeload.github.com/JamieMagee/scorecard-azure-pipelines-task/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamieMagee%2Fscorecard-azure-pipelines-task/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268859123,"owners_count":24318874,"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","status":"online","status_checked_at":"2025-08-05T02:00:12.334Z","response_time":2576,"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":["azure-devops","azure-devops-extension","azure-pipelines","azure-pipelines-task","openssf","openssf-scorecard","security"],"created_at":"2024-12-14T09:33:54.144Z","updated_at":"2026-07-18T19:00:54.298Z","avatar_url":"https://github.com/JamieMagee.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OSSF Scorecard Azure Pipelines Task\n\n[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/JamieMagee.scorecard?style=for-the-badge\u0026color=blue)](https://marketplace.visualstudio.com/items?itemName=JamieMagee.scorecard)\n[![OSSF-Scorecard Score](https://img.shields.io/ossf-scorecard/github.com/JamieMagee/scorecard-azure-pipelines-task?style=for-the-badge)](https://scorecard.dev/viewer/?uri=github.com/JamieMagee/scorecard-azure-pipelines-task)\n\nAn Azure Pipelines task that runs [OpenSSF Scorecard](https://scorecard.dev/) to evaluate the security posture of your repository.\n\n## What is OpenSSF Scorecard?\n\nOpenSSF Scorecard is an automated tool that assesses projects for security risks through a series of checks. It evaluates projects based on security practices and provides a score and recommendations for improvement. For detailed information about each check, visit the [Scorecard documentation](https://github.com/ossf/scorecard/blob/main/docs/checks.md).\n\n## Quick Start\n\nAdd the following task to your Azure Pipeline:\n\n```yaml\n- task: Scorecard@0\n  displayName: 'Run OpenSSF Scorecard'\n```\n\n## Task Inputs\n\n| Input           | Required | Default                 | Description                                         |\n|-----------------|----------|-------------------------|-----------------------------------------------------|\n| `repoToken`     | Yes      | `$(System.AccessToken)` | Azure DevOps PAT with read access to the repository |\n| `resultsFormat` | No       | `sarif`                 | Output format for results (`sarif` or `json`)       |\n| `resultsFile`   | No       | Auto-generated          | Path where results will be saved                    |\n| `resultsPolicy` | No       | Bundled policy          | Path to a Scorecard YAML policy file                |\n\n### Inputs\n\n#### `repoToken`\n\nThe Azure DevOps Personal Access Token used to access the repository. The default [`$(System.AccessToken)`](https://learn.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops\u0026tabs=yaml#systemaccesstoken) is automatically provided by Azure DevOps and has appropriate permissions for most scenarios.\n\n#### `resultsFormat`\n\nChoose between:\n- `sarif` - Static Analysis Results Interchange Format (recommended for integration with security tools)\n- `json` - Standard JSON format\n\n#### `resultsFile`\n\nIf not specified, the task will generate a filename based on the format:\n- SARIF format: `scorecard-results.sarif`\n- JSON format: `scorecard-results.json`\n\n#### `resultsPolicy`\n\nPath to a YAML policy file passed to Scorecard's `--policy` option. If omitted, the task uses its [bundled policy](assets/policy.yml).\n\n### Task result\n\nA successful Scorecard process marks the task as succeeded. If Scorecard exits nonzero but writes valid results, the task uploads them and reports `SucceededWithIssues`. Missing or invalid results fail the task.\n\nYou do not need `continueOnError` merely to publish partial Scorecard results.\n\n## Complete Pipeline Example\n\n```yaml\ntrigger:\n- main\n\npool:\n  vmImage: 'ubuntu-latest'\n\nsteps:\n- checkout: self\n\n- task: Scorecard@0\n  displayName: 'Run OpenSSF Scorecard'\n  inputs:\n    repoToken: $(System.AccessToken)\n    resultsFormat: 'sarif'\n    resultsFile: 'scorecard-results.sarif'\n\n- task: AdvancedSecurity-Publish@1\n  displayName: 'Publish Scorecard Results'\n  inputs:\n    SarifsInputDirectory: '$(Build.SourcesDirectory)'\n    WaitForProcessing: true\n```\n\n### Integration with GitHub Advanced Security for Azure DevOps\n\nThe Scorecard task integrates with [GitHub Advanced Security for Azure DevOps](https://learn.microsoft.com/en-us/azure/devops/repos/security/configure-github-advanced-security-features) through the [`AdvancedSecurity-Publish@1`](https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/advanced-security-publish-v1?view=azure-pipelines) task. This integration allows you to view OpenSSF Scorecard security findings directly in Azure DevOps alongside other security scanning results.\n\nScorecard emits multiple SARIF runs and assigns each one a stable category. Do not set the publisher's `Category` input because it applies one shared value to every run, which Azure DevOps rejects.\n\nSet `WaitForProcessing: true` so the pipeline waits until Advanced Security has accepted and processed the SARIF file. The publisher defaults this option to `false`.\n\nFor more information, see [Integrate non-Microsoft scanning tools](https://learn.microsoft.com/en-us/azure/devops/repos/security/github-advanced-security-code-scanning-third-party) in the Azure DevOps documentation.\n\n## License\n\nThis project is licensed under the Apache 2.0 License - see the [LICENSE](LICENSE) file for details.\n\n## Related Projects\n\n- [OpenSSF Scorecard](https://github.com/ossf/scorecard) - The main Scorecard project\n- [Scorecard GitHub Action](https://github.com/ossf/scorecard-action) - GitHub Action version\n- [Scorecard Monitor](https://github.com/ossf/scorecard-monitor) - Continuous monitoring tool\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiemagee%2Fscorecard-azure-pipelines-task","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamiemagee%2Fscorecard-azure-pipelines-task","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamiemagee%2Fscorecard-azure-pipelines-task/lists"}