Skip to content

Commit fe7684d

Browse files
Merge pull request #2 from step-security/main
Merge changes back to int
2 parents dd6688f + 6a5f7c1 commit fe7684d

File tree

10 files changed

+26
-16
lines changed

10 files changed

+26
-16
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# audit-workflow
2-
GitHub Actions Runtime Security
1+
# Harden-Runner
32

4-
Work in progress...
3+
Work in progress...

dist/index.js

Lines changed: 2 additions & 0 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.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: 2 additions & 2 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.

package-lock.json

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

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "step-security-audit-workflow",
2+
"name": "step-security-harden-runner",
33
"version": "0.0.1",
44
"description": "GitHub Actions Runtime Security",
55
"main": "index.js",
@@ -12,15 +12,15 @@
1212
},
1313
"repository": {
1414
"type": "git",
15-
"url": "git+https://github.com/step-security/audit-workflow.git"
15+
"url": "git+https://github.com/step-security/harden-runner.git"
1616
},
1717
"keywords": [],
1818
"author": "Varun Sharma",
1919
"license": "Apache License 2.0",
2020
"bugs": {
21-
"url": "https://github.com/step-security/audit-workflow/issues"
21+
"url": "https://github.com/step-security/harden-runner/issues"
2222
},
23-
"homepage": "https://github.com/step-security/audit-workflow#readme",
23+
"homepage": "https://github.com/step-security/harden-runner#readme",
2424
"dependencies": {
2525
"@actions/core": "^1.5.0",
2626
"@actions/exec": "^1.1.0",

src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@
33
console.log("Only runs on linux");
44
return;
55
}
6+
7+
var env = "beta";
8+
9+
console.log(
10+
`View security insights and recommended policy at https://${env}.stepsecurity.io/github/${process.env["GITHUB_REPOSITORY"]}/actions/runs/${process.env["GITHUB_RUN_ID"]} after the run has finished`
11+
);
612
})();

src/setup.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { v4 as uuidv4 } from "uuid";
1414
}
1515

1616
var correlation_id = uuidv4();
17-
var env = "int";
17+
var env = "beta";
1818
var api_url = `https://${env}.api.stepsecurity.io/v1`;
1919

2020
const confg = {
@@ -40,8 +40,11 @@ import { v4 as uuidv4 } from "uuid";
4040
.on("error", (err) => {})
4141
.on("finish", async () => {
4242
filePath.close();
43-
//core.notice(correlation_id, { title: "1234" });
43+
4444
console.log(`Step Security Job Correlation ID: ${correlation_id}`);
45+
console.log(
46+
`View security insights and recommended policy at https://${env}.stepsecurity.io/github/${process.env["GITHUB_REPOSITORY"]}/actions/runs/${process.env["GITHUB_RUN_ID"]} after the run has finished`
47+
);
4548
cp.execSync(`cp ${__dirname}/agent /home/agent/agent`);
4649
cp.execSync("chmod +x /home/agent/agent");
4750

0 commit comments

Comments
 (0)