Skip to content

Commit 5c7944e

Browse files
Merge pull request #440 from step-security/rc-11
v2.9.1
2 parents f0db2aa + c79be45 commit 5c7944e

File tree

11 files changed

+47
-16
lines changed

11 files changed

+47
-16
lines changed

dist/index.js

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/post/index.js

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/post/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pre/index.js

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pre/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/checksum.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function verifyChecksum(downloadPath: string, is_tls: boolean) {
1414

1515
if (is_tls) {
1616
expectedChecksum =
17-
"e45b85e29216eb1d217aad368bdb056bbd868a308925e7b2cf9133b06ab435d0"; // checksum for tls_agent
17+
"fa9defcf9e125a62cb29747574d6a07aee4f04153e7bce4a3c7ce29681469e92"; // checksum for tls_agent
1818
}
1919

2020
if (checksum !== expectedChecksum) {

src/cleanup.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import isDocker from "is-docker";
55
import { arcCleanUp, isArcRunner, removeStepPolicyFiles } from "./arc-runner";
66

77
(async () => {
8+
console.log("[harden-runner] post-step");
9+
810
if (process.platform !== "linux") {
911
console.log(common.UBUNTU_MESSAGE);
1012
return;

src/common.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,15 @@ export const processLogLine = (
3535
if (matches) {
3636
const [ipAddress, domain, pid, process] = matches.slice(1);
3737

38-
// Check if all values are non-empty
39-
if (pid && process && domain && ipAddress) {
38+
// Check if all values are non-empty and domain does not end with specified patterns
39+
if (
40+
pid &&
41+
process &&
42+
domain &&
43+
ipAddress &&
44+
!domain.endsWith(".actions.githubusercontent.com.") &&
45+
!domain.endsWith(".blob.core.windows.net.")
46+
) {
4047
const status = ipAddress.startsWith("54.185.253.63")
4148
? "❌ Blocked"
4249
: "✅ Allowed";
@@ -173,4 +180,4 @@ export const HARDEN_RUNNER_UNAVAILABLE_MESSAGE =
173180
"Sorry, we are currently experiencing issues with the Harden Runner installation process. It is currently unavailable.";
174181

175182
export const ARC_RUNNER_MESSAGE =
176-
"Workflow is currently being executed in ARC based runner";
183+
"Workflow is currently being executed in ARC based runner";

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import isDocker from "is-docker";
44
import { STEPSECURITY_WEB_URL } from "./configs";
55

66
(async () => {
7+
console.log("[harden-runner] main-step");
8+
79
if (process.platform !== "linux") {
810
console.log(common.UBUNTU_MESSAGE);
911
return;

0 commit comments

Comments
 (0)