You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
core.setFailed("Invalid PR number input context.");
27
+
if (!Number.isInteger(prNumber) || prNumber <= 0) {
28
+
core.setFailed("Invalid PR number input context (expected a positive integer).");
29
29
return;
30
30
}
31
31
@@ -67,12 +67,12 @@ jobs:
67
67
68
68
// Fail closed if PR exceeds max single-page limits (100 commits)
69
69
if (commitsConnection.pageInfo.hasNextPage || commitsConnection.totalCount > 100) {
70
-
core.setFailed(`PR block: Pull Request contains too many commits (${commitsConnection.totalCount}). Maximum supported limit for a automated verification run is 100 commits.`);
70
+
core.setFailed(`PR block: Pull Request contains too many commits (${commitsConnection.totalCount}). Maximum supported limit for an automated verification run is 100 commits.`);
71
71
return;
72
72
}
73
73
74
-
// 2. Identify unsigned or validation-failing commits
const commentBody = `${commentIdentifier}\n ⚠️ **Unsigned Commits Detected**\n\nThe following commits in this Pull Request are missing a verified cryptographic signature:\n\n${commitList}\n\nPlease sign your commits to comply with <a href="https://metoffice.github.io/simulation-systems/WorkingPractices/gh_authorisation.html#verified-commits">project guidelines</a>.`;
const commentBody = `${commentIdentifier}\n ⚠️ **Unverified Commits Detected**\n\nThe following commits in this Pull Request are missing a verified cryptographic signature:\n\n${commitList}\n\nPlease sign your commits to comply with <a href="https://metoffice.github.io/simulation-systems/WorkingPractices/gh_authorisation.html#verified-commits">project guidelines</a>.`;
91
91
92
92
if (existingComment) {
93
-
// Update the old comment with the refreshed list of unsigned commits
93
+
// Update the old comment with the refreshed list of unverified commits
0 commit comments