Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
github.com/lonegunmanb/terraform-local-schema/v2
This repository contains the generated Go files for the Local provider schemas, which are based on the Terraform Local Provider. These schema files can be used as a reference when writing tools, such as TFLint plugins, that interact with the Local provider.
The internal package from the Terraform Local Provider is not publicly accessible, which is why this repository was created to provide access to the resource schemas.
Each tag version of the Terraform Random Provider has a corresponding tag in this repository. You can find the schema files for each provider version under the respective tag.
e.g.: to use local
's 2.4.0
schema, you could:
$ go get github.com/lonegunmanb/terraform-local-schema/v2@v2.4.0
Then you can read schemas like this:
import (
"testing"
"github.com/lonegunmanb/terraform-local-schema/v2/generated"
"github.com/stretchr/testify/assert"
)
func TestResourceSchema(t *testing.T) {
assert.NotEmpty(t, generated.Resources)
}
The schema files are generated using the terraform provider schema -json command. This command retrieves the schema information and converts it into JSON format. The JSON files are then converted into Go files, which can be found in this repository.
If you encounter any issues or would like to contribute to this repository, please submit an issue or a pull request on GitHub.
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.