Exploit database

GH-4617dfbf11f2c04efd398a4b1c16f30d

actions-marketplace-validations/peter-murray_terragrunt-github-action

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2020-15228

2 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files2

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

__tests__/get-inputs-and-outputs.test.ts

TypeScript · 837 bytes
import {Inputs, Outputs} from '../src/interfaces';
import {getInputs, getOutputs} from '../src/get-inputs-and-outputs';

beforeEach(() => {
  jest.resetModules();
});

afterEach(() => {
  delete process.env['INPUT_TERRAGRUNT_VERSION'];
});

describe('getInputs()', () => {
  test('get spec inputs', () => {
    process.env['INPUT_TERRAGRUNT_VERSION'] = 'v0.21.13';

    const inputs: Inputs = getInputs();

    expect(inputs.TerragruntVersion).toMatch('v0.21.13');
  });

  test('get spec input prefixes with v', () => {
    process.env['INPUT_TERRAGRUNT_VERSION'] = '0.21.13';

    const inputs: Inputs = getInputs();

    expect(inputs.TerragruntVersion).toMatch('v0.21.13');
  });

  test('get spec outputs', () => {
    const outputs: Outputs = getOutputs();

    expect(outputs.TerragruntPath).toMatch('terragrunt_path');
  });
});