Skip to content

Commit e92d55d

Browse files
j
2 parents 31bdb0e + a51302d commit e92d55d

File tree

4,228 files changed

+1782
-391868
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,228 files changed

+1782
-391868
lines changed
File renamed without changes.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: NPM Audit Fix Run
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
package_manager:
7+
description: "Specify the package manager (npm or yarn)"
8+
required: true
9+
default: "npm"
10+
force:
11+
description: "Use --force flag for npm audit fix?"
12+
required: true
13+
type: boolean
14+
base_branch:
15+
description: "Specify a base branch"
16+
required: true
17+
default: "main"
18+
use_private_packages:
19+
description: "Use private packages?"
20+
required: true
21+
type: boolean
22+
script:
23+
description: "Specify the npm/yarn script to run"
24+
required: true
25+
26+
jobs:
27+
audit-fix:
28+
uses: step-security/reusable-workflows/.github/workflows/npm_audit_fix.yml@fix_Build-As-Per-Input
29+
with:
30+
force: ${{ inputs.force }}
31+
base_branch: ${{ inputs.base_branch }}
32+
33+
permissions:
34+
contents: write
35+
pull-requests: write

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

dist/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const express = require('express');
2+
const fs = require('fs');
3+
const app = express();
4+
// Ensures a new timestamp is written to the file on each build
5+
const timestamp = new Date().toISOString();
6+
fs.writeFileSync('./dist/build-timestamp.txt', `Build Time: ${timestamp}\n`, {
7+
flag: 'w'
8+
});
9+
app.get('/', (req, res) => {
10+
res.send('Hello, Secure World! Build Timestamp: ' + timestamp);
11+
});
12+
app.listen(3000, () => {
13+
console.log('Server running on http://localhost:3000');
14+
});

node_modules/.bin/browserslist

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/create-jest

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/esparse

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/esvalidate

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/import-local-fixture

Lines changed: 0 additions & 1 deletion
This file was deleted.

node_modules/.bin/jest

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)