Skip to content

Pass data of get-target-config to Conftest policies #1928

Open
@suzuki-shunsuke

Description

Feature Overview

Pass data of get-target-config to Conftest policies.

Why is the feature needed?

To validate settings.

Example Code

No response

Note

// create a special data file
tmp.setGracefulCleanup();
const tmpobj = tmp.dirSync();
const data = {
tfaction: {
target: t.target,
working_directory: t.workingDir,
},
};
const tmpFile = path.join(tmpobj.name, "data.json");
fs.writeFileSync(tmpFile, JSON.stringify(data));
args.push("--data", tmpFile);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions