mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
22 lines
531 B
JavaScript
22 lines
531 B
JavaScript
import { exec } from "@actions/exec";
|
|
import { getInput } from "@actions/core";
|
|
|
|
exec(process.env['TEST_DATA']); // $ Alert
|
|
exec(process.env['GITHUB_ACTION']);
|
|
|
|
function test(e) {
|
|
exec(e['TEST_DATA']); // $ Alert
|
|
exec(e['GITHUB_ACTION']);
|
|
}
|
|
|
|
test(process.env); // $ Source
|
|
|
|
exec(getInput('data')); // $ Alert
|
|
|
|
function test2(e) {
|
|
const shelljs = require('shelljs');
|
|
exec('rm -rf ' + shelljs.env['SOME']); // $ Alert
|
|
exec('rm -rf ' + shelljs.env.SOME); // $ Alert
|
|
exec('rm -rf ' + shelljs.env); // $ Alert
|
|
}
|