Skip to content
Open

gg #62

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
384110c
Add .whitesource configuration file
mend-for-github-com[bot] Jul 5, 2021
1eb6f40
Merge pull request #1 from tamirdahan/whitesource/configure
tamirdahan Jul 5, 2021
657f7a1
Set up CI with Azure Pipelines
tamirdahan Nov 9, 2021
58a1759
Delete azure-pipelines.yml
tamirdahan Nov 10, 2021
77a41d6
Set up CI with Azure Pipelines
tamirdahan Nov 10, 2021
d1759ee
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 10, 2021
49419da
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 10, 2021
0b16fb9
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 10, 2021
3b31072
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 10, 2021
a82eebc
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 10, 2021
f08daf1
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 10, 2021
50bc1f3
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 10, 2021
673c5ee
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 11, 2021
1ee8272
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 11, 2021
bf9c875
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 11, 2021
e15cc50
Delete azure-pipelines.yml
tamirdahan Nov 15, 2021
b36d6c2
Set up CI with Azure Pipelines
tamirdahan Nov 15, 2021
b7c8792
Delete azure-pipelines.yml
tamirdahan Nov 15, 2021
34094c7
Set up CI with Azure Pipelines
tamirdahan Nov 15, 2021
7f9a5b0
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 15, 2021
9bf2ba7
Delete azure-pipelines.yml
tamirdahan Nov 17, 2021
5e63837
Set up CI with Azure Pipelines
tamirdahan Nov 17, 2021
08bc21e
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 17, 2021
764d1ee
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 18, 2021
1358c7b
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 18, 2021
09c58c3
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 18, 2021
ef00f8e
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 18, 2021
b2fe01a
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 18, 2021
9f06d77
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 18, 2021
7a074d7
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 18, 2021
260e594
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 18, 2021
579bf1f
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 18, 2021
656e86b
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 18, 2021
2ff46ca
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 19, 2021
98a3733
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 19, 2021
691306b
Set up CI with Azure Pipelines
tamirdahan Nov 19, 2021
74aa799
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 19, 2021
708a9ea
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 20, 2021
3adbeff
Update azure-pipelines.yml for Azure Pipelines
tamirdahan Nov 20, 2021
1b9f95f
Delete .whitesource
tamirdahan Nov 19, 2023
2b5f3d1
Add .whitesource configuration file
mend-for-github-com[bot] Nov 19, 2023
c722311
Merge pull request #19 from tamirdahan/whitesource/configure
tamirdahan Nov 19, 2023
c2fed69
Delete .whitesource
tamirdahan Nov 19, 2023
d7eaa15
Add .whitesource configuration file
mend-for-github-com[bot] Mar 23, 2025
d23e56d
Merge pull request #43 from tamirdahan/whitesource/configure
tamirdahan Mar 23, 2025
593732c
Update Dockerfile
tamirdahan Mar 23, 2025
ecd18f5
Add files via upload
tamirdahan Mar 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .whitesource
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"scanSettings": {
"configMode": "AUTO",
"configExternalURL": "",
"projectToken": "",
"baseBranches": []
},
"scanSettingsSAST": {
"enableScan": false,
"scanPullRequests": false,
"incrementalScan": true,
"baseBranches": [],
"snippetSize": 10
},
"checkRunSettings": {
"vulnerableCheckRunConclusionLevel": "failure",
"displayMode": "diff",
"useMendCheckNames": true
},
"checkRunSettingsSAST": {
"checkRunConclusionLevel": "failure",
"severityThreshold": "high"
},
"issueSettings": {
"minSeverityLevel": "LOW",
"issueType": "DEPENDENCY"
},
"remediateSettings": {
"workflowRules": {
"enabled": true
}
},
"imageSettings":{
"imageTracing":{
"enableImageTracingPR": false,
"addRepositoryCoordinate": false,
"addDockerfilePath": false,
"addMendIdentifier": false
}
}
}
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#FROM library/node:6
FROM ubuntu:xenial

Expand Down Expand Up @@ -27,4 +28,4 @@ RUN chmod +x /app/start.sh
EXPOSE 3000

CMD [ "/app/start.sh" ]
#CMD [ "npm", "start" ]
#CMD [ "npm", "start" ]
39 changes: 39 additions & 0 deletions azure-pipelines-1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Docker
# Build and push an image to Azure Container Registry
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker

trigger:
- master

resources:
- repo: self

variables:
# Container registry service connection established during pipeline creation
dockerRegistryServiceConnection: 'bd5bee4f-9c9b-43a3-9875-1646a70c0632'
imageRepository: 'tamirdahanvulnerablenode'
containerRegistry: 'wsscontainerregistry.azurecr.io'
dockerfilePath: '$(Build.SourcesDirectory)/Dockerfile'
tag: '$(Build.BuildId)'

# Agent VM image name
vmImageName: 'ubuntu-latest'

stages:
- stage: Build
displayName: Build and push stage
jobs:
- job: Build
displayName: Build
pool:
vmImage: $(vmImageName)
steps:
- task: Docker@2
displayName: Build and push an image to container registry
inputs:
command: buildAndPush
repository: $(imageRepository)
dockerfile: $(dockerfilePath)
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
54 changes: 54 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Docker
# Build and push an image to Azure Container Registry
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker

trigger:
- master

resources:
- repo: self

variables:
# Container registry service connection established during pipeline creation
dockerRegistryServiceConnection: '7a7e03b5-8510-4096-b0ae-a9d96a202624'
imageRepository: 'VulnerableNode'
containerRegistry: 'wsscontainerregistry.azurecr.io'
dockerfilePath: '$(Build.SourcesDirectory)/Dockerfile'
tag: '$(Build.BuildId)'

# Agent VM image name
vmImageName: 'ubuntu-latest'

stages:
- stage: Build
displayName: Build and push stage
jobs:
- job: Build
displayName: Build
pool:
vmImage: $(vmImageName)
steps:
- task: Docker@2
displayName: Build and push an image to container registry
inputs:
command: buildAndPush
repository: $(imageRepository)
dockerfile: $(dockerfilePath)
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
- task: CmdLine@2
displayName: OS Scanned By WhiteSource
inputs:
script: |
curl -LJO https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
echo Unified Agent downloaded successfully
java -jar wss-unified-agent.jar
env:
WS_APIKEY: 096db8ec-fefa-4e58-b9a0-e3413373d807
WS_WSS_URL: https://saas.whitesourcesoftware.com/agent
WS_PRODUCTNAME: AZDO_$(System.TeamProject)
#WS_PROJECTNAME: $(Build.Repository.Name)_$(Build.SourceBranchName )
WS_DOCKER_PROJECTNAMEFORMAT: "repositoryName"
WS_DOCKER_SCANIMAGES: true
WS_DOCKER_INCLUDES: ".*$(imageRepository).*"
13 changes: 13 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const express = require('express');
const app = express();
const port = 3000;

// Route to serve the HTML page
app.get('/', (req, res) => {
res.sendFile(__dirname + '/index.html');
});

// Start the server
app.listen(port, () => {
console.log(`Server running at http://localhost:${port}`);
});