{"id":21477486,"url":"https://github.com/spectralops/spectral-github-action","last_synced_at":"2025-07-15T10:33:23.814Z","repository":{"id":40269937,"uuid":"443754119","full_name":"SpectralOps/spectral-github-action","owner":"SpectralOps","description":"Spectral Security Integration into your Github Actions pipeline","archived":false,"fork":false,"pushed_at":"2024-04-10T06:49:32.000Z","size":199,"stargazers_count":14,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-20T10:13:13.188Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/SpectralOps.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-02T11:56:21.000Z","updated_at":"2023-12-04T04:19:48.000Z","dependencies_parsed_at":"2024-06-19T01:37:15.383Z","dependency_job_id":"56e6a75e-df67-4af5-87b1-7a9069adc885","html_url":"https://github.com/SpectralOps/spectral-github-action","commit_stats":{"total_commits":20,"total_committers":7,"mean_commits":2.857142857142857,"dds":0.35,"last_synced_commit":"5c8cb41967055b3ab87654743d1f2e9851462754"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpectralOps%2Fspectral-github-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpectralOps%2Fspectral-github-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpectralOps%2Fspectral-github-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpectralOps%2Fspectral-github-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpectralOps","download_url":"https://codeload.github.com/SpectralOps/spectral-github-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225732634,"owners_count":17515525,"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":[],"created_at":"2024-11-23T11:13:49.360Z","updated_at":"2024-11-23T11:13:50.140Z","avatar_url":"https://github.com/SpectralOps.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp\u003e\n    \u003cbr/\u003e\n    \u003cbr/\u003e\n    \u003cp align=\"center\"\u003e\n    \u003ca href=\"http://spectralops.io\"\u003e \n        \u003cimg alt=\"SpectralOps logo\" src=\"./logo.svg\" width=\"300\"/\u003e\n    \u003c/a\u003e\n    \u003c/p\u003e\n    \u003cp align=\"center\"\u003e\n        \u003cimg src=\"https://github.com/spectralops/spectral-github-action/actions/workflows/main.yml/badge.svg\"/\u003e\n        \u003cimg src=\"https://img.shields.io/badge/license-MIT-brightgreen\"/\u003e\n    \u003c/p\u003e\n    \u003ch1\u003eSpectral Scan\u003c/h1\u003e \n\u003c/p\u003e\n\n# Install Spectral Scan action\n\nSpectral Scan is a single self-contained binary, that's easy to get and use. This action installs the latest Spectral version into your PATH.\n\n## Example usage\n\nInclude this Action as a step in your workflow:\n\n```\nuses: spectralops/spectral-github-action@v4\nwith:\n  spectral-dsn: $SPECTRAL_DSN\n  spectral-args: scan --ok\n```\n\nYou can see an example of this Action [here](https://github.com/SpectralOps/spectral-github-action/tree/main/.github/workflows/main.yml)\n\n## Configuration\n\nYou'll need to provide Spectral DSN as an input variable. You should always store your DSN in a secure way, like below in [GitHub secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets).\n\n```yaml\nname: Spectral\n\non: [push]\n\njobs:\n  scan:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n      - name: Install and run Spectral CI\n        uses: spectralops/spectral-github-action@v4\n        with:\n          spectral-dsn: ${{ secrets.SPECTRAL_DSN }}\n          spectral-args: scan --ok\n```\n\nSpectral provides another scan option to audit your Github/Gitlab organization, user or repo.\n\n```yaml\nname: Spectral\n\non: [push]\n\njobs:\n  scan:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n      - name: Install and run Spectral Audit\n        uses: spectralops/spectral-github-action@v4\n        with:\n          spectral-dsn: ${{ secrets.SPECTRAL_DSN }}\n          spectral-args: github -k repo -t ${{ secrets.MY_GITHUB_TOKEN }} https://github.com/SpectralOps/spectral-github-action --include-tags base,audit --ok\n```\n\n### How to Contribute\n\nWe welcome [issues](https://github.com/SpectralOps/spectral-github-action/issues) to and [pull requests](https://github.com/SpectralOps/spectral-github-action/pulls) against this repository!\n\n## License\n\nThis project is licensed under the MIT License. See [LICENSE](LICENSE) for further details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspectralops%2Fspectral-github-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspectralops%2Fspectral-github-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspectralops%2Fspectral-github-action/lists"}