{"id":15688390,"url":"https://github.com/martincostello/browserstack-automate","last_synced_at":"2025-10-04T17:06:58.836Z","repository":{"id":2897177,"uuid":"47778280","full_name":"martincostello/browserstack-automate","owner":"martincostello","description":".NET client for the BrowserStack Automate REST API","archived":false,"fork":false,"pushed_at":"2025-10-02T14:54:52.000Z","size":3730,"stargazers_count":8,"open_issues_count":1,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-10-02T16:32:51.581Z","etag":null,"topics":["browserstack","browserstack-automate","dotnet-core"],"latest_commit_sha":null,"homepage":"https://martincostello.github.io/browserstack-automate/","language":"C#","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/martincostello.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","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},"funding":{"github":["martincostello"],"buy_me_a_coffee":"martincostello"}},"created_at":"2015-12-10T17:54:36.000Z","updated_at":"2025-10-02T14:54:57.000Z","dependencies_parsed_at":"2023-07-05T17:16:13.948Z","dependency_job_id":"6bfc387f-ebc3-49d7-be9e-b557d9b7c54c","html_url":"https://github.com/martincostello/browserstack-automate","commit_stats":{"total_commits":498,"total_committers":7,"mean_commits":71.14285714285714,"dds":"0.49598393574297184","last_synced_commit":"24c52560097da6333eb3000db4766ae8402adc53"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/martincostello/browserstack-automate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martincostello%2Fbrowserstack-automate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martincostello%2Fbrowserstack-automate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martincostello%2Fbrowserstack-automate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martincostello%2Fbrowserstack-automate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martincostello","download_url":"https://codeload.github.com/martincostello/browserstack-automate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martincostello%2Fbrowserstack-automate/sbom","scorecard":{"id":582317,"data":{"date":"2025-08-20T17:16:07Z","repo":{"name":"github.com/martincostello/browserstack-automate","commit":"2a6e75a37e3b973099214b48261e0114cadee036"},"scorecard":{"version":"v5.2.1","commit":"ab2f6e92482462fe66246d9e32f642855a691dc1"},"score":8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/7 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/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#code-review"}},{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: Dependabot: .github/dependabot.yml:1","Info: detected update tool: RenovateBot: .github/renovate.json:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dependency-update-tool"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#maintained"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#security-policy"}},{"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/ab2f6e92482462fe66246d9e32f642855a691dc1/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/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/build.yml:38","Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:22","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:23","Info: jobLevel 'contents' permission set to 'read': .github/workflows/dependency-review.yml:17","Info: jobLevel 'actions' permission set to 'read': .github/workflows/lint.yml:34","Info: jobLevel 'contents' permission set to 'read': .github/workflows/lint.yml:35","Warn: jobLevel 'security-events' permission set to 'write': .github/workflows/lint.yml:36","Info: found token with 'none' permissions: .github/workflows/build.yml:1","Info: found token with 'none' permissions: .github/workflows/bump-version.yml:1","Info: found token with 'none' permissions: .github/workflows/codeql.yml:1","Info: found token with 'none' permissions: .github/workflows/dependency-review.yml:1","Info: found token with 'none' permissions: .github/workflows/lint.yml:1","Info: topLevel permissions set to 'read-all': .github/workflows/ossf-scorecard.yml:11","Info: found token with 'none' permissions: .github/workflows/release.yml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info:  25 out of  25 GitHub-owned GitHubAction dependencies pinned","Info:   9 out of   9 third-party GitHubAction 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/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#pinned-dependencies"}},{"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/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#vulnerabilities"}},{"name":"CII-Best-Practices","score":5,"reason":"badge detected: Passing","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#cii-best-practices"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: SAST configuration detected: CodeQL","Info: all commits (30) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#sast"}},{"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/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#fuzzing"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/build.yml:160"],"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/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":8,"reason":"1 out of the last 1 releases have a total of 1 signed artifacts.","details":["Info: signed release artifact: build-windows.spdx.json.sig: https://github.com/martincostello/browserstack-automate/releases/tag/v4.1.0","Warn: release artifact v4.1.0 does not have provenance: https://api.github.com/repos/martincostello/browserstack-automate/releases/198555644"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#license"}},{"name":"Branch-Protection","score":3,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'main'","Warn: 'stale review dismissal' is disabled on branch 'main'","Warn: branch 'main' does not require approvers","Warn: codeowners review is not required on branch 'main'","Warn: 'last push approval' is disabled on branch 'main'","Warn: 'up-to-date branches' is disabled on branch 'main'","Info: status check found to merge onto on branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#branch-protection"}},{"name":"Contributors","score":10,"reason":"project has 8 contributing companies or organizations","details":["Info: found contributions from: App-vNext, aspnet-contrib, costellorg, dotnet, dotnet-foundation, grafana, msmvps, open-telemetry"],"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#contributors"}},{"name":"CI-Tests","score":10,"reason":"29 out of 29 merged PRs checked by a CI test -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#ci-tests"}}]},"last_synced_at":"2025-08-20T19:29:42.027Z","repository_id":2897177,"created_at":"2025-08-20T19:29:42.027Z","updated_at":"2025-08-20T19:29:42.027Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278343086,"owners_count":25971400,"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-10-04T02:00:05.491Z","response_time":63,"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":["browserstack","browserstack-automate","dotnet-core"],"created_at":"2024-10-03T17:59:13.345Z","updated_at":"2025-10-04T17:06:58.803Z","avatar_url":"https://github.com/martincostello.png","language":"C#","funding_links":["https://github.com/sponsors/martincostello","https://buymeacoffee.com/martincostello"],"categories":[],"sub_categories":[],"readme":"# ![Alt text](browserstack-logo.png) BrowserStack Automate REST API .NET Client\n\n[![NuGet](https://img.shields.io/nuget/v/MartinCostello.BrowserStack.Automate?logo=nuget\u0026label=Latest\u0026color=blue)](https://www.nuget.org/packages/MartinCostello.BrowserStack.Automate)\n[![NuGet Downloads](https://img.shields.io/nuget/dt/MartinCostello.BrowserStack.Automate?logo=nuget\u0026label=Downloads\u0026color=blue)](https://www.nuget.org/packages/MartinCostello.BrowserStack.Automate)\n\n## Build Status\n\n[![Build status](https://github.com/martincostello/browserstack-automate/actions/workflows/build.yml/badge.svg?branch=main\u0026event=push)](https://github.com/martincostello/browserstack-automate/actions/workflows/build.yml?query=branch%3Amain+event%3Apush)\n[![codecov](https://codecov.io/gh/martincostello/browserstack-automate/branch/main/graph/badge.svg)](https://codecov.io/gh/martincostello/browserstack-automate)\n[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/martincostello/browserstack-automate/badge)](https://securityscorecards.dev/viewer/?uri=github.com/martincostello/browserstack-automate)\n\n## Overview\n\nThis repository contains a .NET client library/NuGet package for the [BrowserStack Automate](https://www.browserstack.com/automate) REST API.\n\nFeatures include:\n\n- Querying the status of a BrowserStack Automate plan.\n- Querying the available browsers.\n- Querying and deleting builds.\n- Querying and deleting projects.\n- Querying and deleting sessions.\n- Querying session log.\n- Setting the status of a session.\n- Regenerating the API access key.\n\nThe assembly supports .NET Standard 2.0.\n\n## Installation\n\n```powershell\ndotnet add package MartinCostello.BrowserStack.Automate\n```\n\n## Usage Examples\n\nThe following example shows a custom [xUnit.net](https://xunit.github.io/) `[Fact]` that checks for an available BrowserStack Automate session before running the test, otherwise it is skipped.\n\n```csharp\nnamespace MyApp.Tests;\n\nusing MartinCostello.BrowserStack.Automate;\nusing Xunit;\n\n[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]\npublic sealed class RequiresBrowserStackAutomateAttribute : FactAttribute\n{\n    public RequiresBrowserStackAutomateAttribute()\n    {\n        var userName = Environment.GetEnvironmentVariable(\"BrowserStack_UserName\");\n        var accessKey = Environment.GetEnvironmentVariable(\"BrowserStack_AccessKey\");\n\n        if (userName is not null \u0026\u0026 accessKey is not null)\n        {\n            using var client = new BrowserStackAutomateClient(userName, accessKey);\n            var plan = client.GetStatusAsync().Result;\n\n            if (plan.MaximumAllowedParallelSessions \u003c 1 ||\n                plan.ParallelSessionsRunning == plan.MaximumAllowedParallelSessions)\n            {\n                Skip = \"No BrowserStack Automate sessions are currently available.\";\n            }\n        }\n        else\n        {\n            Skip = \"No BrowserStack Automate credentials are available.\";\n        }\n    }\n}\n```\n\n## Feedback\n\nAny feedback or issues can be added to the issues for this project in [GitHub](https://github.com/martincostello/browserstack-automate/issues).\n\n## Repository\n\nThe repository is hosted in [GitHub](https://github.com/martincostello/browserstack-automate): \u003chttps://github.com/martincostello/browserstack-automate.git\u003e\n\n## License\n\nThis project is licensed under the [Apache 2.0](https://github.com/martincostello/browserstack-automate/blob/main/LICENSE) license.\n\n## Building and Testing\n\nTo build and test the assembly run one of the following set of commands:\n\n```powershell\n$env:BrowserStack_UserName  = \"MyUserName\"\n$env:BrowserStack_AccessKey = \"MyAccessKey\"\n./build.ps1\n```\n\n_If you do not have a BrowserStack Automate access key you can still just run the build script and the integration tests that require credentials will be skipped._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartincostello%2Fbrowserstack-automate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartincostello%2Fbrowserstack-automate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartincostello%2Fbrowserstack-automate/lists"}