{"id":42479076,"url":"https://github.com/ewilde/go-runscope","last_synced_at":"2026-01-28T10:38:15.082Z","repository":{"id":20608098,"uuid":"90414794","full_name":"ewilde/go-runscope","owner":"ewilde","description":"go client library for the runscope  api https://www.runscope.com/docs/api","archived":false,"fork":false,"pushed_at":"2023-05-25T13:58:55.000Z","size":191,"stargazers_count":1,"open_issues_count":8,"forks_count":17,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-06-19T16:48:03.099Z","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":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ewilde.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":"2017-05-05T20:43:30.000Z","updated_at":"2023-05-25T10:36:47.000Z","dependencies_parsed_at":"2024-06-19T16:24:09.779Z","dependency_job_id":"96d114fd-cf5a-4944-8bf8-a051099e5ab1","html_url":"https://github.com/ewilde/go-runscope","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ewilde/go-runscope","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewilde%2Fgo-runscope","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewilde%2Fgo-runscope/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewilde%2Fgo-runscope/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewilde%2Fgo-runscope/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ewilde","download_url":"https://codeload.github.com/ewilde/go-runscope/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewilde%2Fgo-runscope/sbom","scorecard":{"id":387338,"data":{"date":"2025-08-11","repo":{"name":"github.com/ewilde/go-runscope","commit":"8678bea4dfd7a31a16d8568b1f66e57e2db8ebf4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Code-Review","score":6,"reason":"Found 14/23 approved changesets -- score normalized to 6","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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/lint.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/ewilde/go-runscope/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/ewilde/go-runscope/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/ewilde/go-runscope/lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/ewilde/go-runscope/lint.yml/master?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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: Mozilla Public License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T16:57:57.447Z","repository_id":20608098,"created_at":"2025-08-18T16:57:57.447Z","updated_at":"2025-08-18T16:57:57.447Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28844014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T07:39:25.367Z","status":"ssl_error","status_checked_at":"2026-01-28T07:39:24.487Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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-01-28T10:38:14.229Z","updated_at":"2026-01-28T10:38:15.076Z","avatar_url":"https://github.com/ewilde.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/ewilde/go-runscope.svg?branch=master)](https://travis-ci.org/ewilde/go-runscope)\n\n# go-runscope\ngo-runscope is a [go](https://golang.org/) client library for the\n[runscope api](https://www.runscope.com/docs/api)\n\n## Installation\n\n```\ngo get github.com/ewilde/go-runscope\n```\n\n## Usage\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/ewilde/go-runscope\"\n)\n\nfunc createBucket() {\n    var accessToken = \"{your token}\"  // See https://www.runscope.com/applications\n    var teamUUID = \"{your team uuid}\" // See https://www.runscope.com/teams\n    var client = runscope.NewClient(runscope.APIURL, accessToken)\n    var bucket = \u0026runscope.Bucket{\n        Name: \"My first bucket\",\n        Team: \u0026runscope.Team{\n            ID: teamUUID,\n        },\n    }\n\n    bucket, err := client.CreateBucket(bucket)\n    if err != nil {\n        log.Printf(\"[ERROR] error creating bucket: %s\", err)\n    }\n}\n```\n\n### All Resources and Actions\nComplete examples can be found in the [examples folder](examples) or\nin the unit tests\n\n#### Bucket\n```go\nClient.CreateBucket(bucket *Bucket) (*Bucket, error)\n...\n    var bucket = \u0026runscope.Bucket{\n        Name: \"My first bucket\",\n        Team: \u0026runscope.Team{\n            ID: teamUUID,\n        },\n    }\n\tbucket, err := client.CreateBucket(\u0026{Bucket{Name: \"test\", Team}})\n```\n\n\n```go\nClient.ReadBucket(key string) (*Bucket, error)\n...\n    bucket, err := client.ReadBucket(\"htqee6p4dhvc\")\n    if err != nil {\n        log.Printf(\"[ERROR] error creating bucket: %s\", err)\n    }\n\n    fmt.Printf(\"Bucket read successfully: %s\", bucket.String())\n```\n\n\n```go\nClient.DeleteBucket(key string)\n...\n    err := client.DeleteBucket(\"htqee6p4dhvc\")\n    if err != nil {\n        log.Printf(\"[ERROR] error creating bucket: %s\", err)\n    }\n```\n\n#### Environment\n```go\nClient.CreateSharedEnvironment(environment *Environment, bucket *Bucket) (*Environment, error)\n...\nenvironment := \u0026runscope.Environment{\n\t\tName: \"tf_environment\",\n\t\tInitialVariables: map[string]string{\n\t\t\t\"VarA\" : \"ValB\",\n\t\t\t\"VarB\" : \"ValB\",\n\t\t},\n\t\tIntegrations: []*runscope.Integration {\n\t\t\t{\n\t\t\t\tID:              \"27e48b0d-ba8e-4fe0-bcaa-dd9de08dc47d\",\n\t\t\t\tIntegrationType: \"pagerduty\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tID:              \"574f4560-0f50-41da-a2f7-bdce419ad378\",\n\t\t\t\tIntegrationType: \"slack\",\n\t\t\t},\n\t\t},\n\t}\n\nenvironment, err := client.CreateSharedEnvironment(environment, createBucket())\nif err != nil {\n    log.Printf(\"[ERROR] error creating environment: %s\", err)\n}\n```\n\n```go\nClient.ReadSharedEnvironment(environment *Environment, bucket *Bucket) (*Environment, error)\n\nClient.ReadTestEnvironment(environment *Environment, test *Test) (*Environment, error)\n\nClient.UpdateSharedEnvironment(environment *Environment, bucket *Bucket) (*Environment, error)\n\nClient.UpdateTestEnvironment(environment *Environment, test *Test) (*Environment, error)\n```\n#### Test\n```go\nClient.CreateTest(test *Test) (*Test, error) (*Environment, error)\n...\n    test := \u0026Test{ Name: \"tf_test\", Description: \"This is a tf new test\", Bucket: bucket }\n\ttest, err = client.CreateTest(newTest)\n\tdefer client.DeleteTest(newTest)\n\n\tif err != nil {\n\t\tt.Error(err)\n\t}\n\nClient.ReadTest(test *Test) (*Test, error)\n\nClient.UpdateTest(test *Test) (*Test, error)\n\nClient.DeleteTest(test *Test) error\n```\n#### Test step\n```go\nClient.CreateTestStep(testStep *TestStep, bucketKey string, testID string) (*TestStep, error)\n...\n    step := NewTestStep()\n    step.StepType = \"request\"\n    step.URL = \"http://example.com\"\n    step.Method = \"GET\"\n    step.Assertions = [] Assertion {{\n        Source: \"response_status\",\n        Comparison : \"equal_number\",\n        Value: 200,\n    }}\n\n    step, err = client.CreateTestStep(step, bucket.Key, test.ID)\n    if err != nil {\n        t.Error(err)\n    }\n\nClient.ReadTestStep(testStep *TestStep, bucketKey string, testID string) (*TestStep, error)\n\nClient.UpdateTestStep(testStep *TestStep, bucketKey string, testID string) (*TestStep, error)\n\nClient.DeleteTestStep(testStep *TestStep, bucketKey string, testID string) error\n```\n#### Schedule\n```go\nClient.CreateSchedule(schedule *Schedule, bucketKey string, testID string) (*Schedule, error)\n...\n    schedule := NewSchedule()\n    schedule.Note = \"Daily schedule\"\n    schedule.Interval = \"1d\"\n    schedule.EnvironmentID = environment.ID\n\n    schedule, err = client.CreateSchedule(schedule, bucket.Key, test.ID)\n    if err != nil {\n        t.Error(err)\n    }\n\nClient.ReadSchedule(schedule *Schedule, bucketKey string, testID string) (*Schedule, error)\n\nClient.UpdateSchedule(schedule *Schedule, bucketKey string, testID string) (*Schedule, error)\n\nClient.DeleteSchedule(schedule *Schedule, bucketKey string, testID string) error\n```\n### Unit Testing\nYou can now mock client data:\n\n```\ntype MockClient struct {\n}\n\nfunc (client *MockClient) ListBuckets() ([]*runscope.Bucket, error) {\n \tbucket1 := \u0026runscope.Bucket{}\n \tbucket2 := \u0026runscope.Bucket{}\n \tbucket1.Name = \"MyBucket\"\n \tbucket2.Name = \"MyNonExistingBucket\"\n \treturn []*runscope.Bucket{bucket1, bucket2}, nil\n }\n ```\nThen you can use this mockClient in your Unit Test:\n```\nfunc TestReadBucket(t *testing.T) {\n\tt.Run(\"Successful return bucket\", func(t *testing.T) {\n\t\tclient := \u0026resources.MockClient{}\n\t\tgetBucket := ReadBucket(\"MyBucket\", client)\n\n\t\tif getBucket == nil {\n\t\t\tt.Error(\"Should have returned a bucket\")\n\t\t}\n\t})\n}\n```\n\n## Developing\n### Running the tests\nBy default the tests requiring access to the runscope api (most of them)\nwill be skipped. To run the integration tests please set the following\nenvironment variables.\n\n**Note:** you will need at least one integration setup on your account, i.e.  [slack](https://www.runscope.com/docs/api-testing/slack)\n\n```bash\nRUNSCOPE_ACC=true\nRUNSCOPE_ACCESS_TOKEN={your access token}\nRUNSCOPE_TEAM_ID={your team uuid}\n```\nAccess tokens can be created using the [applications](https://www.runscope.com/applications)\nsection of your runscope account.\n\nYour team url can be found by taking the uuid from https://www.runscope.com/teams\n\n## Contributing\n\n1. Fork it ( https://github.com/ewilde/go-runscope/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Make sure that `make build` passes with test running\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fewilde%2Fgo-runscope","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fewilde%2Fgo-runscope","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fewilde%2Fgo-runscope/lists"}