Skip to content

Commit

Permalink
Merge branch 'master' into connectivity_map_with_exposure_analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
shireenf-ibm authored Sep 25, 2024
2 parents 21bffdb + a7ac238 commit e42ee5a
Show file tree
Hide file tree
Showing 551 changed files with 16,391 additions and 6,379 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/scanner-versioned-definitions-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
nvd-feeds)
nvd_file=nvd-feeds.zip
;;
,*)
*)
echo >&2 "error: invalid NVD bundle type '$NVD_BUNDLE_TYPE'"
exit 1
esac
Expand Down Expand Up @@ -121,7 +121,6 @@ jobs:
env:
SCANNER_BUNDLE_VERSION: ${{ matrix.version }}
ROX_GIT_REF: ${{ matrix.ref }}
STACKROX_NVD_ZIP_PATH: nvd.zip
steps:
- name: Free up disk space
shell: bash
Expand All @@ -148,7 +147,7 @@ jobs:
uses: ./.github/actions/download-artifact-with-retry
with:
name: nvd
path: nvd.zip
path: .

- name: Build updater
run: |
Expand All @@ -159,6 +158,13 @@ jobs:
- name: Create bundle output directory
run: mkdir -p definitions/${{ env.SCANNER_BUNDLE_VERSION }}

- name: Sanity check NVD zip
run: |
path="$PWD/nvd.zip"
echo "checking contents of $path"
unzip -l "$path"
echo "STACKROX_NVD_ZIP_PATH=$path" >> "$GITHUB_ENV"
- name: Run Updater (single bundle)
run: |
scanner/bin/updater export --manual-url "${{ needs.prepare-environment.outputs.manual_url }}" "definitions/${{ env.SCANNER_BUNDLE_VERSION }}"
Expand Down Expand Up @@ -186,8 +192,6 @@ jobs:
- /tmp:/tmp
- /usr:/mnt/usr
- /opt:/mnt/opt
env:
STACKROX_NVD_ZIP_PATH: nvd.zip
steps:
- name: Free up disk space
shell: bash
Expand Down Expand Up @@ -223,14 +227,21 @@ jobs:
uses: ./.github/actions/download-artifact-with-retry
with:
name: nvd
path: nvd.zip
path: .

- name: Build updater
run: |
echo "Building updater for pull request ${{ env.PR_NAME }}..."
make tag
make -C scanner bin/updater
- name: Sanity check NVD zip
run: |
path="$PWD/nvd.zip"
echo "checking contents of $path"
unzip -l "$path"
echo "STACKROX_NVD_ZIP_PATH=$path" >> "$GITHUB_ENV"
- name: Create bundle output directory
run: mkdir -p definitions/${{ github.event.pull_request.number }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_collector_periodic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: make -sC deps/collector tag | tee COLLECTOR_VERSION
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v7
with:
token: '${{ secrets.RHACS_BOT_GITHUB_TOKEN }}'
commit-message: Update COLLECTOR_VERSION
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_scanner_periodic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: make -sC deps/scanner tag | tee SCANNER_VERSION
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v7
with:
token: '${{ secrets.RHACS_BOT_GITHUB_TOKEN }}'
commit-message: Update SCANNER_VERSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set -euo pipefail
SCRIPT_NAME="$(basename -- "${BASH_SOURCE[0]}")"
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

SECRET_NAME_IN_KONFLUX="subscription-manager-activation-key"
SECRET_NAME_IN_KONFLUX="subscription-manager-activation-key-prod"
# The mount is provided by the buildah task when the ACTIVATION_KEY parameter is set to a valid secret name.
SECRET_MOUNT_PATH="/activation-key"
SECRET_KEY="activation-key"
Expand Down
26 changes: 13 additions & 13 deletions .tekton/basic-component-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ spec:
- name: name
value: git-clone-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-git-clone-oci-ta:0.1@sha256:b03bb5e21665b17ae2f645496013a072b00f1a174024dc1ff41dc626f364c66b
value: quay.io/konflux-ci/tekton-catalog/task-git-clone-oci-ta:0.1@sha256:8e1e861d9564caea3f9ce8d1c62789f5622b5a7051209decc9ecf10b6f54aa71
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -211,7 +211,7 @@ spec:
- name: name
value: prefetch-dependencies-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies-oci-ta:0.1@sha256:ad15707d97026d6d462e4c02a09e73a3cffdcdae3a91b03f39d2675d5a000d2b
value: quay.io/konflux-ci/tekton-catalog/task-prefetch-dependencies-oci-ta:0.1@sha256:8e2a8de8e8a55a8e657922d5f8303fefa065f7ec2f8a49a666bf749540d63679
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -245,7 +245,7 @@ spec:
- name: name
value: buildah-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-buildah-oci-ta:0.2@sha256:8cef107a4ee7826c01c494df2b33b6ac46490051caf08e29f4802486bcb8cf31
value: quay.io/konflux-ci/tekton-catalog/task-buildah-oci-ta:0.2@sha256:2aca1d8561aeb3a03d14e0d89d95e5de9fbb1e6e9df822c6f6f580bbb106fb11
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -285,7 +285,7 @@ spec:
- name: name
value: buildah-remote-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.2@sha256:06c536082a9289718e3011ac81328d4b9444987317ca58343e658c3710191a76
value: quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.2@sha256:2ec1ea21fe4459b8d7497412c9f86d62261fc410262560eeb630ea3775cd53e7
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -325,7 +325,7 @@ spec:
- name: name
value: buildah-remote-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.2@sha256:06c536082a9289718e3011ac81328d4b9444987317ca58343e658c3710191a76
value: quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.2@sha256:2ec1ea21fe4459b8d7497412c9f86d62261fc410262560eeb630ea3775cd53e7
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -365,7 +365,7 @@ spec:
- name: name
value: buildah-remote-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.2@sha256:06c536082a9289718e3011ac81328d4b9444987317ca58343e658c3710191a76
value: quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.2@sha256:2ec1ea21fe4459b8d7497412c9f86d62261fc410262560eeb630ea3775cd53e7
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -393,7 +393,7 @@ spec:
- name: name
value: build-image-manifest
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-build-image-manifest:0.1@sha256:ff7779cea8cd99c211e690f218fc367fe30374e528bb53507a73c7214be8ce9d
value: quay.io/konflux-ci/tekton-catalog/task-build-image-manifest:0.1@sha256:56c8236523509b8669755e725fb6c0c5810fa49431e14da8a3a0b36ff1fde448
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -421,7 +421,7 @@ spec:
- name: name
value: build-image-manifest
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-build-image-manifest:0.1@sha256:ff7779cea8cd99c211e690f218fc367fe30374e528bb53507a73c7214be8ce9d
value: quay.io/konflux-ci/tekton-catalog/task-build-image-manifest:0.1@sha256:56c8236523509b8669755e725fb6c0c5810fa49431e14da8a3a0b36ff1fde448
- name: kind
value: task
resolver: bundles
Expand All @@ -443,7 +443,7 @@ spec:
- name: name
value: source-build-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-source-build-oci-ta:0.1@sha256:639995e4221da90f5a9fc14dacd0dba384e2a37e3a2c7aa5dafec3c2ab3f5f74
value: quay.io/konflux-ci/tekton-catalog/task-source-build-oci-ta:0.1@sha256:d1fd616413d45bb6af0532352bfa8692c5ca409127e5a2dd4f1bc52aef27d1dc
- name: kind
value: task
resolver: bundles
Expand All @@ -466,7 +466,7 @@ spec:
- name: name
value: deprecated-image-check
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-deprecated-image-check:0.4@sha256:d98fa9daf5ee12dfbf00880b83d092d01ce9994d79836548d2f82748bb0c64a2
value: quay.io/konflux-ci/tekton-catalog/task-deprecated-image-check:0.4@sha256:b4f9599f5770ea2e6e4d031224ccc932164c1ecde7f85f68e16e99c98d754003
- name: kind
value: task
resolver: bundles
Expand All @@ -486,7 +486,7 @@ spec:
- name: name
value: clair-scan
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-clair-scan:0.1@sha256:baea4be429cf8d91f7c758378cea42819fe324f25a7f957bf9805409cab6d123
value: quay.io/konflux-ci/tekton-catalog/task-clair-scan:0.2@sha256:9f4ddafd599e06b319cece5a4b8ac36b9e7ec46bea378bc6c6af735d3f7f8060
- name: kind
value: task
resolver: bundles
Expand Down Expand Up @@ -526,7 +526,7 @@ spec:
- name: name
value: sast-snyk-check-oci-ta
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-sast-snyk-check-oci-ta:0.2@sha256:c2f5eb19cfe6e48595368cc50907be74a7c8a375866ad16e7663df540825af6b
value: quay.io/konflux-ci/tekton-catalog/task-sast-snyk-check-oci-ta:0.2@sha256:ad02dd316d68725490f45f23d2b8acf042bf0a80f7a22c28e0cadc6181fc10f1
- name: kind
value: task
resolver: bundles
Expand All @@ -546,7 +546,7 @@ spec:
- name: name
value: clamav-scan
- name: bundle
value: quay.io/konflux-ci/tekton-catalog/task-clamav-scan:0.1@sha256:7bb17b937c9342f305468e8a6d0a22493e3ecde58977bd2ffc8b50e2fa234d58
value: quay.io/konflux-ci/tekton-catalog/task-clamav-scan:0.1@sha256:9f2b3cbf4bee2e802b21a3051ac4198a2122f3b956e6934cb7592625c894c778
- name: kind
value: task
resolver: bundles
Expand Down
2 changes: 1 addition & 1 deletion .tekton/determine-image-tag-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
name: workdir
steps:
- name: use-trusted-artifact
image: quay.io/redhat-appstudio/build-trusted-artifacts:latest@sha256:a390d28f69d61ab38aadf78b7c9b21ed09b79687bddae4cf1d02616bef5d7da7
image: quay.io/redhat-appstudio/build-trusted-artifacts:latest@sha256:c91de1771397c5a6fde3cf0c642dd3478af5409e2d1980a3402f32b395f2d2a7
args:
- use
- $(params.SOURCE_ARTIFACT)=/var/workdir/source
Expand Down
4 changes: 2 additions & 2 deletions .tekton/fetch-external-networks-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
name: workdir
steps:
- name: use-trusted-artifact
image: quay.io/redhat-appstudio/build-trusted-artifacts:latest@sha256:a390d28f69d61ab38aadf78b7c9b21ed09b79687bddae4cf1d02616bef5d7da7
image: quay.io/redhat-appstudio/build-trusted-artifacts:latest@sha256:c91de1771397c5a6fde3cf0c642dd3478af5409e2d1980a3402f32b395f2d2a7
args:
- use
- $(params.SOURCE_ARTIFACT)=/var/workdir/source
Expand All @@ -44,7 +44,7 @@ spec:
microdnf -y install zip
image/rhel/fetch-stackrox-data.sh .konflux/stackrox-data
- name: create-trusted-artifact
image: quay.io/redhat-appstudio/build-trusted-artifacts:latest@sha256:a390d28f69d61ab38aadf78b7c9b21ed09b79687bddae4cf1d02616bef5d7da7
image: quay.io/redhat-appstudio/build-trusted-artifacts:latest@sha256:c91de1771397c5a6fde3cf0c642dd3478af5409e2d1980a3402f32b395f2d2a7
args:
- create
- --store
Expand Down
4 changes: 2 additions & 2 deletions .tekton/fetch-scanner-vuln-mappings-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
name: workdir
steps:
- name: use-trusted-artifact
image: quay.io/redhat-appstudio/build-trusted-artifacts:latest@sha256:a390d28f69d61ab38aadf78b7c9b21ed09b79687bddae4cf1d02616bef5d7da7
image: quay.io/redhat-appstudio/build-trusted-artifacts:latest@sha256:c91de1771397c5a6fde3cf0c642dd3478af5409e2d1980a3402f32b395f2d2a7
args:
- use
- $(params.SOURCE_ARTIFACT)=/var/workdir/source
Expand All @@ -40,7 +40,7 @@ spec:
workingDir: /var/workdir/source
script: scanner/image/scanner/download-mappings.sh .konflux/scanner-data
- name: create-trusted-artifact
image: quay.io/redhat-appstudio/build-trusted-artifacts:latest@sha256:a390d28f69d61ab38aadf78b7c9b21ed09b79687bddae4cf1d02616bef5d7da7
image: quay.io/redhat-appstudio/build-trusted-artifacts:latest@sha256:c91de1771397c5a6fde3cf0c642dd3478af5409e2d1980a3402f32b395f2d2a7
args:
- create
- --store
Expand Down
Loading

0 comments on commit e42ee5a

Please sign in to comment.