Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'/bin/bash',
'--login',
'-c',
[
`mkdir -p /go/src/github.com/${org}/${repo}`,
`cd /go/src/github.com/${org}/${repo}`,
'git init',
'git fetch {{ event.head.repo.url }} {{ event.head.ref }}',
'git config advice.detachedHead false',
'git checkout {{ event.head.sha }}',
'go install',
'go test ./...'
].join(' && ')
]
}[type]);
const githubClient = new Github({ rootUrl: process.env.TASKCLUSTER_ROOT_URL });
export default class YamlCreator extends Component {
static initialState = {
resetActive: false,
tasks: [],
events: new Set([
'pull_request.opened',
'pull_request.reopened',
'pull_request.synchronize'
]),
taskName: '',
taskDescription: ''
};
constructor(props) {
super(props);