Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm audit fixes #448

Merged
merged 1 commit into from
Jun 21, 2024

npm audit fixes

13ad149
Select commit
Loading
Failed to load commit list.
Merged

npm audit fixes #448

npm audit fixes
13ad149
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Branch succeeded Jun 21, 2024 in 4m 9s

Build Passed

The build passed, just like the previous build.

Details

This is a normal build for the npmAuditFix branch. You should be able to reproduce it by checking out the branch locally.

Jobs and Stages

This build has four jobs, running in two sequential stages.

Stage 1: building images

This stage passed.

Job Node.js ENV OS State
1917.1 building amd64 image 18 NODE_OPTIONS="--dns-result-order=ipv4first" Linux passed
1917.2 building ppc64le image 18 NODE_OPTIONS="--dns-result-order=ipv4first" Linux passed
1917.3 building s390x image 18 NODE_OPTIONS="--dns-result-order=ipv4first" Linux passed

Stage 2: publish multi-arch image, npm & github release

This stage passed.

Job Node.js ENV OS State
1917.4 18 NODE_OPTIONS="--dns-result-order=ipv4first" Linux passed

Build Configuration

Build Option Setting
Language Node.js
Operating System Linux (Focal)
Node.js Version 18
Build Configuration
{
  "language": "node_js",
  "os": [
    "linux"
  ],
  "dist": "focal",
  "node_js": [
    "18"
  ],
  "services": [
    "docker"
  ],
  "env": [
    "global={:NODE_OPTIONS=>\"\\\"--dns-result-order=ipv4first\\\"\"}"
  ],
  "before_install": [
    "echo \"$DOCKERHUB_TOKEN\" | docker login -u \"icdevops\" --password-stdin",
    "export WS_APIKEY=${WS_APIKEY}",
    "export WS_USERKEY=${WS_USERKEY}",
    "export WS_PRODUCTNAME=${WS_PRODUCTNAME}",
    "export WS_PROJECTNAME=RemoteResource",
    "export WS_WSS_URL=https://ibmets.whitesourcesoftware.com/agent",
    "./build/download-kubelint.sh"
  ],
  "jobs": {
    "include": [
      {
        "stage": "building images",
        "name": "building amd64 image",
        "arch": "amd64",
        "script": [
          "if [ \"${TRAVIS_PULL_REQUEST}\" != \"false\" ]; then npx audit-ci --config audit-ci.json; else npx audit-ci --config audit-ci.json || true; fi",
          "npm run lint",
          "npm test",
          "if [[ $TRAVIS_TAG =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$ ]]; then npm version --no-git-tag-version \"${TRAVIS_TAG}\"; fi",
          "docker build --rm -t \"quay.io/razee/remoteresource:${TRAVIS_COMMIT}-amd64\" .",
          "if [ -n \"${TRAVIS_TAG}\" ]; then docker tag quay.io/razee/remoteresource:${TRAVIS_COMMIT}-amd64 quay.io/razee/remoteresource:${TRAVIS_TAG}-amd64; fi",
          "docker images"
        ],
        "before_deploy": [
          "docker login -u=\"${QUAY_ID}\" -p=\"${QUAY_TOKEN}\" quay.io"
        ],
        "deploy": [
          {
            "provider": "script",
            "script": "docker push \"quay.io/razee/remoteresource:${TRAVIS_TAG}-amd64\"",
            "skip_cleanup": true,
            "on": {
              "tags": true,
              "condition": [
                "${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+_[0-9]{3}$"
              ]
            }
          },
          {
            "provider": "script",
            "script": "docker push \"quay.io/razee/remoteresource:${TRAVIS_TAG}-amd64\"",
            "skip_cleanup": true,
            "on": {
              "tags": true,
              "condition": [
                "${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$"
              ]
            }
          }
        ]
      },
      {
        "name": "building ppc64le image",
        "arch": "ppc64le",
        "script": [
          "if [ \"${TRAVIS_PULL_REQUEST}\" != \"false\" ]; then npx audit-ci --config audit-ci.json; else npx audit-ci --config audit-ci.json || true; fi",
          "npm test",
          "if [[ $TRAVIS_TAG =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$ ]]; then npm version --no-git-tag-version \"${TRAVIS_TAG}\"; fi",
          "docker build --rm -t \"quay.io/razee/remoteresource:${TRAVIS_COMMIT}-ppc64le\" .",
          "if [ -n \"${TRAVIS_TAG}\" ]; then docker tag quay.io/razee/remoteresource:${TRAVIS_COMMIT}-ppc64le quay.io/razee/remoteresource:${TRAVIS_TAG}-ppc64le; fi",
          "docker images"
        ],
        "before_deploy": [
          "docker login -u=\"${QUAY_ID}\" -p=\"${QUAY_TOKEN}\" quay.io"
        ],
        "deploy": [
          {
            "provider": "script",
            "script": "docker push \"quay.io/razee/remoteresource:${TRAVIS_TAG}-ppc64le\"",
            "skip_cleanup": true,
            "on": {
              "tags": true,
              "condition": [
                "${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+_[0-9]{3}$"
              ]
            }
          },
          {
            "provider": "script",
            "script": "docker push \"quay.io/razee/remoteresource:${TRAVIS_TAG}-ppc64le\"",
            "skip_cleanup": true,
            "on": {
              "tags": true,
              "condition": [
                "${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$"
              ]
            }
          }
        ]
      },
      {
        "name": "building s390x image",
        "arch": "s390x",
        "script": [
          "if [ \"${TRAVIS_PULL_REQUEST}\" != \"false\" ]; then npx audit-ci --config audit-ci.json; else npx audit-ci --config audit-ci.json || true; fi",
          "npm test",
          "if [[ $TRAVIS_TAG =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$ ]]; then npm version --no-git-tag-version \"${TRAVIS_TAG}\"; fi",
          "docker build --rm -t \"quay.io/razee/remoteresource:${TRAVIS_COMMIT}-s390x\" .",
          "if [ -n \"${TRAVIS_TAG}\" ]; then docker tag quay.io/razee/remoteresource:${TRAVIS_COMMIT}-s390x quay.io/razee/remoteresource:${TRAVIS_TAG}-s390x; fi",
          "docker images"
        ],
        "before_deploy": [
          "docker login -u=\"${QUAY_ID}\" -p=\"${QUAY_TOKEN}\" quay.io"
        ],
        "deploy": [
          {
            "provider": "script",
            "script": "docker push \"quay.io/razee/remoteresource:${TRAVIS_TAG}-s390x\"",
            "skip_cleanup": true,
            "on": {
              "tags": true,
              "condition": [
                "${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+_[0-9]{3}$"
              ]
            }
          },
          {
            "provider": "script",
            "script": "docker push \"quay.io/razee/remoteresource:${TRAVIS_TAG}-s390x\"",
            "skip_cleanup": true,
            "on": {
              "tags": true,
              "condition": [
                "${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$"
              ]
            }
          }
        ]
      },
      {
        "stage": "publish multi-arch image, npm & github release",
        "arch": "amd64",
        "script": [
          "if [[ $TRAVIS_TAG =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$ ]]; then npm version --no-git-tag-version \"${TRAVIS_TAG}\"; fi",
          "./build/process-template.sh kubernetes/RemoteResource/resource.yaml >/tmp/resource.yaml",
          "kubelint /tmp/resource.yaml",
          "export DOCKER_CLI_EXPERIMENTAL=enabled",
          "sudo chown -R $USER:$USER /etc/docker/",
          "if [ -n \"${TRAVIS_TAG}\" ]; then\n   docker manifest create quay.io/razee/remoteresource:${TRAVIS_TAG} \\\n     quay.io/razee/remoteresource:${TRAVIS_TAG}-amd64 \\\n     quay.io/razee/remoteresource:${TRAVIS_TAG}-ppc64le \\\n     quay.io/razee/remoteresource:${TRAVIS_TAG}-s390x\nfi\n",
          "if [ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ]; then curl -LJO https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar; java -jar wss-unified-agent.jar -d . || echo \"UA Scan Error occurred\"; fi"
        ],
        "before_deploy": [
          "docker login -u=\"${QUAY_ID}\" -p=\"${QUAY_TOKEN}\" quay.io",
          "npm install -g npm@9"
        ],
        "deploy": [
          {
            "provider": "script",
            "script": "docker manifest push \"quay.io/razee/remoteresource:${TRAVIS_TAG}\"",
            "skip_cleanup": true,
            "on": {
              "tags": true,
              "condition": [
                "${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+_[0-9]{3}$"
              ]
            }
          },
          {
            "provider": "script",
            "script": "docker manifest push \"quay.io/razee/remoteresource:${TRAVIS_TAG}\"",
            "skip_cleanup": true,
            "on": {
              "tags": true,
              "condition": [
                "${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$"
              ]
            }
          },
          {
            "provider": "releases",
            "file": [
              "/tmp/resource.yaml"
            ],
            "skip_cleanup": true,
            "on": {
              "tags": true,
              "condition": [
                "${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$"
              ]
            },
            "token": "${GITHUB_TOKEN}"
          },
          {
            "name": "${TRAVIS_TAG}",
            "provider": "npm",
            "email": "${NPMJS_EMAIL}",
            "skip_cleanup": true,
            "on": {
              "tags": true,
              "condition": [
                "${TRAVIS_TAG} =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$"
              ]
            },
            "api_token": "${NPMJS_API_KEY}"
          }
        ]
      }
    ]
  }
}