Skip to content

Commit

Permalink
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions lib/actions-util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/actions-util.js.map
12 changes: 6 additions & 6 deletions src/actions-util.ts
@@ -150,12 +150,12 @@ function toCodedErrors(errors: {
}

export const WorkflowErrors = toCodedErrors({
MismatchedBranches: `Please make sure that every branch in on.pull_request is also in on.push so that CodeQL can establish a baseline.`,
MissingHooks: `Please specify on.push and on.pull_request hooks.`,
MissingPullRequestHook: `Please specify an on.pull_request hook so CodeQL is run against new pull requests.`,
MissingPushHook: `Please specify an on.push hook so CodeQL can establish a baseline.`,
PathsSpecified: `Please do not specify paths at on.pull.`,
CheckoutWrongHead: `Git checkout HEAD^2 is no longer necessary. Please remove this line.`,
MismatchedBranches: `Please make sure that every branch in on.pull_request is also in on.push so that Code Scanning can compare pull requests against the state of the base branch.`,
MissingHooks: `Please specify on.push and on.pull_request hooks so that Code Scanning can compare pull requests against the state of the base branch.`,
MissingPullRequestHook: `Please specify an on.pull_request hook so that Code Scanning is run against pull requests.`,
MissingPushHook: `Please specify an on.push hook so that Code Scanning can compare pull requests against the state of the base branch.`,
PathsSpecified: `Please do not specify paths in on.pull as this can cause missing Code Scanning analysis states for the base branch.`,
CheckoutWrongHead: `git checkout HEAD^2 is no longer necessary. Please remove this step as Code Scanning recommends analyzing the merge commit for best results.`,
});

export function validateWorkflow(doc: Workflow): CodedError[] {

0 comments on commit 8d468d6

Please sign in to comment.