Skip to content

Commit

Permalink
Update for isdocker
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsh-coder committed Oct 18, 2024
1 parent 806ab1c commit 40401cf
Show file tree
Hide file tree
Showing 6 changed files with 108 additions and 20 deletions.
48 changes: 46 additions & 2 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

68 changes: 56 additions & 12 deletions dist/post/index.js

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

2 changes: 1 addition & 1 deletion dist/post/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/cleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import * as cp from "child_process";
import * as common from "./common";
import isDocker from "is-docker";
import { isArcRunner } from "./arc-runner";

import { isGithubHosted } from "./tls-inspect";
(async () => {
console.log("[harden-runner] post-step");

if (process.platform !== "linux") {
console.log(common.UBUNTU_MESSAGE);
return;
}
if (isDocker()) {
if (isGithubHosted() && isDocker()) {
console.log(common.CONTAINER_MESSAGE);
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import * as common from "./common";
import * as core from "@actions/core";
import isDocker from "is-docker";
import { STEPSECURITY_WEB_URL } from "./configs";

import { isGithubHosted } from "./tls-inspect";
(async () => {
console.log("[harden-runner] main-step");

if (process.platform !== "linux") {
console.log(common.UBUNTU_MESSAGE);
return;
}
if (isDocker()) {
if (isGithubHosted() && isDocker()) {
console.log(common.CONTAINER_MESSAGE);
return;
}
Expand Down

0 comments on commit 40401cf

Please sign in to comment.