Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
github.com/wso2/choreo-samples/test-runner-go
When the test runner component is triggered manually, it will run a job to execute automated tests implemented by the developer. Test results can be viewed from the Choreo console.
Let's write some tests in Go and run those tests in Choreo.
Go to https://console.choreo.dev/ and sign in. This opens the project home page.
Click Create button in the Component Listing section. Choose Test Runner component type.
Enter a unique name and a description for the test runner component. For this guide, let's enter the following values:
Field | Value |
---|---|
Name | Go Test Runner |
Description | Test Runner implemented in Go |
Click Github tab and provide the required source repository details.
Field | Value |
---|---|
Organization | wso2 |
Repository | choreo-samples |
Branch | main |
Choose the Go buildpack from the buildpack tiles.
Choose Project directory and Go version. For this example, let's consider the following values.
Field | Value |
---|---|
Go Project Directory | /test-runner-go |
Language Version | 1.x |
Click Create. Once the component creation is complete, you will see the component overview page.
You have successfully created a Test Runner component using a Go buildpack. Now let's build and run the tests.
Run the go test suite using go run main.go
command.
Once successfully executed, test cases will get executed and the logs will be shown.
go run main.go
Running tests...
Received JSON Data for Post ID 1:
{UserID:1 ID:1 Title:sunt aut facere repellat provident occaecati excepturi optio reprehenderit Body:quia et suscipit
suscipit recusandae consequuntur expedita et cum
reprehenderit molestiae ut ut quas totam
nostrum rerum est autem sunt rem eveniet architecto}
Received JSON Data for Post ID 2:
{UserID:1 ID:2 Title:qui est esse Body:est rerum tempore vitae
sequi sint nihil reprehenderit dolor beatae ea dolores neque
fugiat blanditiis voluptate porro vel nihil molestiae ut reiciendis
qui aperiam non debitis possimus qui neque nisi nulla}
PASS
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.