Skip to content

Commit

Permalink
Fix Vulnerabilities from Sample Apps (#2558)
Browse files Browse the repository at this point in the history
* fixed vulnerabilities in gatsbysample node app

* fixed vulnerabilities in monorepo-lerna-yarn sample app

* fixed vulnerabilities in vue-sample node app

* fixed vulnerabilities in hexo-sample

* fixed vulnerabilities in webfrontend-yarnlock

* fixed vulnerabilities in create-react-app-sample node app

* fixed vulnerabilities in hackernews-nuxtjs node app

* fixed vulnerabilities in lab2-appservice|node sample app

* fixed vulnerabilities in monorepo-lerna-npm|node sample app

* updated packages for hugo-sample-json

* updated packages for hugo-sample-json

* fixed vulnerabilities for hugo-sample-yaml

* fixed vulnerabilities in hugo-sample-yaml app

* updated orjson in cgmanifest file

* fixed vulnerabilities in HugoClientDotNetCoreServer

* fixed vulnerabilities in HugoClientDotNetCoreServer src

* fixed vulnerabilities in hugo-sample-json

* fixed vulnerabilities in hugo-sample-new-config-name

* fix vulnerabilities in hugo-sample-new-config-name

* fix vulnerabilities in hugo-sample-yaml

* fix vulnerabilities in hugo-sample-yml

* fix vulnerabilities in hugo-sample-yml

* fix vulnerabilities in hugo-sample

* fix vulnerabilities in hugo-sample

* fix vulnerabilities in dotnetCoreReactApp

* fix vulnerabilities in dotnetCoreReactApp

* fix vulnerabilities in Flask-React-Postgres sample app

* updated node version for tests

* updated build image for node tests

* updated node version for build image tests

* removed eslint packages from dotNetCoreReactApp and vue-sample

* updated package.json in dotNetCoreReactApp

* updated nth-check version in dotNetCoreReactApp

* reverted dotnetconstants

* reverted DotNetConstants.cs

* reverted DotNetConstants.cs
  • Loading branch information
Saipriya-1144 authored Jan 6, 2025
1 parent 58b1ea4 commit c3150d0
Show file tree
Hide file tree
Showing 43 changed files with 96,425 additions and 92,622 deletions.
2 changes: 1 addition & 1 deletion images/runtime/python/cgmanifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"Component": {
"pip": {
"Name": "orjson",
"Version": "3.6.6"
"Version": "3.9.15"
},
"Type": "pip"
},
Expand Down
6 changes: 4 additions & 2 deletions tests/Oryx.BuildImage.Tests/Node/NodeAppOutputDirTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ public NodeAppOutputDirTest(ITestOutputHelper output) : base(output)
public void BuildsApp_AndAddsOutputDirToManifestFile(string appName, string expectedOutputDirPath)
{
// Arrange
var version = "20.11.0";
var volume = DockerVolume.CreateMirror(
Path.Combine(_hostSamplesDir, "nodejs", appName));
var appDir = volume.ContainerDir;
var appOutputDir = "/tmp/output";
var script = new ShellScriptBuilder()
.AddBuildCommand($"{appDir} -i /tmp/int -o {appOutputDir}")
.AddCommand("node -v")
.AddBuildCommand($"{appDir} -i /tmp/int -o {appOutputDir} --platform {NodeConstants.PlatformName} --platform-version {version}")
.AddFileExistsCheck($"{appOutputDir}/{FilePaths.OsTypeFileName}")
.AddStringExistsInFileCheck(
$"{NodeManifestFilePropertyKeys.OutputDirPath}=\"{expectedOutputDirPath}\"",
Expand All @@ -51,7 +53,7 @@ public void BuildsApp_AndAddsOutputDirToManifestFile(string appName, string expe
// Act
var result = _dockerCli.Run(new DockerRunArguments
{
ImageId = _imageHelper.GetAzureFunctionsJamStackBuildImage(),
ImageId = _imageHelper.GetAzureFunctionsJamStackBuildImage(ImageTestHelperConstants.AzureFunctionsJamStackBullseye),
Volumes = new List<DockerVolume> { volume },
CommandToExecuteOnRun = "/bin/bash",
CommandArguments = new[] { "-c", script }
Expand Down

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

Loading

0 comments on commit c3150d0

Please sign in to comment.