Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 16 additions & 25 deletions .github/workflows/check-deps.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,27 @@
name: Check for latest_release of deps
name: Check dependencies

on :
schedule :
- cron : '0 8 * * *'
on:
schedule:
- cron: '0 8 * * *'

workflow_dispatch :
workflow_dispatch:

jobs :
build :
runs-on : ubuntu-latest
jobs:
build:
runs-on: ubuntu-latest
if: github.repository_owner == 'envoyproxy'

steps :
- name : checkout
uses : actions/checkout/@v2
with :
ref : ${{ github.head_ref }}

steps:
- name: Checkout repository
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.3.4
with:
ref: ${{ github.head_ref }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
- name: Run dependency checker
run: |
python -m pip install --upgrade pip
pip install virtualenv

- name: setting up virtualenv
run : |
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
# --create_issues flag to create issue only in github action
# and not interfere with the CI
./tools/dependency/release_dates.sh ./bazel/repository_locations.bzl --create_issues
./tools/dependency/release_dates.sh ./api/bazel/repository_locations.bzl --create_issues
bazel run //tools/dependency:check -- -c release_issues
bazel run //tools/dependency:check -- -c cves -w error
13 changes: 0 additions & 13 deletions ci/check_repository_locations.sh

This file was deleted.

5 changes: 4 additions & 1 deletion ci/do_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,12 @@ elif [[ "$CI_TARGET" == "deps" ]]; then
# Validate repository metadata.
echo "check repositories..."
"${ENVOY_SRCDIR}"/tools/check_repositories.sh
"${ENVOY_SRCDIR}"/ci/check_repository_locations.sh

echo "check dependencies..."
bazel run "${BAZEL_BUILD_OPTIONS[@]}" //tools/dependency:check

# Run pip requirements tests
echo "check pip..."
bazel run "${BAZEL_BUILD_OPTIONS[@]}" //tools/dependency:pip_check

exit 0
Expand Down
3 changes: 2 additions & 1 deletion tools/base/requirements.in
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
abstracts>=0.0.12
aio.api.bazel
aio.core>=0.2.0
aio.run.runner>=0.2.1
aio.run.runner>=0.2.2
aio.run.checker>=0.2.1
colorama
coloredlogs
coverage
envoy.base.utils>=0.0.14
envoy.code_format.python_check>=0.0.7
envoy.dependency.check
envoy.dependency.cve_scan>=0.0.4
envoy.dependency.pip_check>=0.1.0
envoy.distribution.release>=0.0.7
Expand Down
26 changes: 23 additions & 3 deletions tools/base/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ abstracts==0.0.12 \
# via
# -r requirements.in
# aio.api.bazel
# aio.api.github
# aio.core
# aio.run.checker
# aio.run.runner
# envoy.base.utils
# envoy.code-format.python-check
# envoy.dependency.check
# envoy.dependency.cve-scan
# envoy.dependency.pip-check
# envoy.distribution.release
Expand All @@ -24,12 +26,18 @@ aio.api.bazel==0.0.1 \
--hash=sha256:21094c7f8ed038d4668d93efa908d0770cf4bb781373a1300f152b211ff3dc81 \
--hash=sha256:d110ab219de520c911bd1505f516cf208fea75fe66529f638c9b4ac182b20ab8
# via -r requirements.in
aio.api.github==0.0.3 \
--hash=sha256:8054c3d023eb5c1dfe9ad93341f5e184c9835b2e502b737195b2539388a5af56 \
--hash=sha256:d7b03d5e4fc3363603ec75fed2c77f6fdbff3ac596e79328500416e2d6c7a0e9
# via envoy.dependency.check
aio.core==0.2.0 \
--hash=sha256:40a6d6495eaf11a9333847e5d74ed84452da5dfbc785c65f022d7c1343126f4c \
--hash=sha256:a174f73793b57050c53463dde4a06f2655f613c72f4789f568dd4f32bc54af2c
# via
# -r requirements.in
# aio.api.github
# envoy.code-format.python-check
# envoy.dependency.check
# envoy.dependency.cve-scan
# envoy.distribution.release
# envoy.distribution.repo
Expand All @@ -41,13 +49,14 @@ aio.run.checker==0.2.1 \
# via
# -r requirements.in
# envoy.code-format.python-check
# envoy.dependency.check
# envoy.dependency.cve-scan
# envoy.dependency.pip-check
# envoy.distribution.distrotest
# envoy.distribution.verify
aio.run.runner==0.2.1 \
--hash=sha256:80062b417b127b433224fd889673b06167cd9fbaaf24c4148f799e3f9993632d \
--hash=sha256:87feef7303efba78908dde07482999daa2a0254b37a7c972b4fdfab685eb416b
aio.run.runner==0.2.2 \
--hash=sha256:8d1c265076c01f5ffe6b26c08575a98db0f7bd1e38805bda98f1a7b4983619e8 \
--hash=sha256:92e67031877cec36fc46ec33b7ab9158464ca1b5870e13dc2fb4374200ad4878
# via
# -r requirements.in
# aio.run.checker
Expand Down Expand Up @@ -109,6 +118,7 @@ aiohttp==3.7.4.post0 \
# via
# aio.core
# aiodocker
# envoy.dependency.check
# envoy.dependency.cve-scan
# envoy.github.abstract
# envoy.github.release
Expand Down Expand Up @@ -280,6 +290,7 @@ envoy.base.utils==0.0.14 \
# via
# -r requirements.in
# envoy.code-format.python-check
# envoy.dependency.check
# envoy.dependency.cve-scan
# envoy.dependency.pip-check
# envoy.distribution.distrotest
Expand All @@ -293,6 +304,10 @@ envoy.code-format.python-check==0.0.7 \
--hash=sha256:c34f12946c908d2c7deb9faefecb044d8d5a9458755b40ed2537b04184fc8a21 \
--hash=sha256:c4758e9da6d5cba437f8948becadb4c3ab5f9f01a07f1a0965944873ae724963
# via -r requirements.in
envoy.dependency.check==0.0.1 \
--hash=sha256:52118226ff7f46698ad6b93ce6b04dabad4edbccc7a60db73dd1da83c12647a2 \
--hash=sha256:f8738db62ed52ea439e10467cd2bdc0a6469f5f63711230d5dce4656d83d1023
# via -r requirements.in
envoy.dependency.cve-scan==0.0.4 \
--hash=sha256:036bc115f09b3e14151708a33f9fe4c4ee32e911c0096ff44c140492fd3bcc9a \
--hash=sha256:087abcbc5a366d0ef27359829096451b1578feb11f87920cc63dc853ebf2ac71
Expand Down Expand Up @@ -381,6 +396,8 @@ gidgethub==5.0.1 \
--hash=sha256:3efbd6998600254ec7a2869318bd3ffde38edc3a0d37be0c14bc46b45947b682 \
--hash=sha256:67245e93eb0918b37df038148af675df43b62e832c529d7f859f6b90d9f3e70d
# via
# aio.api.github
# envoy.dependency.check
# envoy.distribution.release
# envoy.github.abstract
# envoy.github.release
Expand Down Expand Up @@ -419,6 +436,7 @@ jinja2==3.0.3 \
--hash=sha256:611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7
# via
# -r requirements.in
# envoy.dependency.check
# envoy.dependency.cve-scan
# sphinx
markupsafe==2.0.1 \
Expand Down Expand Up @@ -530,6 +548,8 @@ packaging==21.0 \
--hash=sha256:7dc96269f53a4ccec5c0670940a4281106dd0bb343f47b7471f779df49c2fbe7 \
--hash=sha256:c86254f9220d55e31cc94d69bade760f0847da8000def4dfe1c6b872fd14ff14
# via
# aio.api.github
# envoy.dependency.check
# envoy.dependency.cve-scan
# envoy.github.abstract
# envoy.github.release
Expand Down
11 changes: 5 additions & 6 deletions tools/dependency/BUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
load("@rules_python//python:defs.bzl", "py_binary", "py_library")
load("//bazel:envoy_build_system.bzl", "envoy_package")
load("@base_pip3//:requirements.bzl", "requirement")
load("//tools/base:envoy_python.bzl", "envoy_entry_point")
load("@base_pip3//:requirements.bzl", "requirement")
load("@envoy_repo//:path.bzl", "PATH")

licenses(["notice"]) # Apache 2
Expand All @@ -13,18 +13,17 @@ py_library(
srcs = ["utils.py"],
)

py_binary(
name = "cve_scan",
srcs = ["cve_scan.py"],
envoy_entry_point(
name = "check",
args = [
"$(location :cve.yaml)",
"--repository_locations=$(location //bazel:all_repository_locations)",
"--cve_config=$(location :cve.yaml)",
],
data = [
":cve.yaml",
"//bazel:all_repository_locations",
],
deps = [requirement("envoy.dependency.cve_scan")],
pkg = "envoy.dependency.check",
)

envoy_entry_point(
Expand Down
Loading