Skip to content

Commit 4870b9f

Browse files
authored
fix: filter tags to not include sbom/vex (#669)
* fix: filter tags to not include sbom/vex now that registries are adding artifact tags (it seems nvidia is the main one for now) we need to filter them out. Signed-off-by: vsoch <[email protected]>
1 parent 8c540f8 commit 4870b9f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+76
-64
lines changed

.github/workflows/alert-action-updates.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout Repository
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313
- name: Detect and Update
1414
uses: vsoch/action-updater@2c2216e27ee963aaa31ff0ff81de007acb84b9c2 # 0.0.11
1515
with:

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
generate-docs:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
with:
1313
ref: gh-pages
1414

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
formatting:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
- name: Setup black linter
1717
run: conda create --quiet --name black pyflakes

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-20.04
1010

1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313

1414
- name: Install
1515
run: conda create --quiet --name shpc twine

.github/workflows/test-container.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
4242
- name: Checkout
4343
if: ${{ env.keepgoing == 'true' }}
44-
uses: actions/checkout@v3
44+
uses: actions/checkout@v4
4545

4646
- name: Make Space For Build
4747
if: ${{ env.keepgoing == 'true' }}
@@ -74,7 +74,7 @@ jobs:
7474
if: ${{ env.keepgoing == 'true' }}
7575
run: conda create --quiet -c conda-forge --name shpc spython
7676

77-
- uses: actions/checkout@v3
77+
- uses: actions/checkout@v4
7878
if: ${{ env.keepgoing == 'true' }}
7979

8080
- name: Install shpc

.github/workflows/test-core.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Create conda environment
1414
run: conda create --quiet -c conda-forge --name shpc spython
1515

16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
- name: Install shpc
1818
run: |
1919
export PATH="/usr/share/miniconda/bin:$PATH"
@@ -27,4 +27,5 @@ jobs:
2727
source activate shpc
2828
which shpc
2929
cd shpc/tests
30+
export GITHUB_CI=yes
3031
pytest -sxv test_*.py

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Create conda environment
5050
run: conda create --quiet -c conda-forge --name shpc spython
5151

52-
- uses: actions/checkout@v3
52+
- uses: actions/checkout@v4
5353
- name: Install shpc
5454
run: |
5555
export PATH="/usr/share/miniconda/bin:$PATH"

.github/workflows/update-contributors.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout Repository
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
- name: Tributors Update
1616
uses: con/tributors@master
1717
env:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions

shpc/client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22

33
__author__ = "Vanessa Sochat"
4-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
4+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
55
__license__ = "MPL 2.0"
66

77
import argparse

shpc/client/add.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import shpc.utils

shpc/client/check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import shpc.utils

shpc/client/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import sys

shpc/client/docgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import shpc.utils

shpc/client/get.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import shpc.utils

shpc/client/inspect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55

shpc/client/install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import shpc.utils

shpc/client/listing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55

shpc/client/namespace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55

shpc/client/pull.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import re

shpc/client/remove.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import shpc.utils

shpc/client/shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import shpc.utils

shpc/client/show.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import shpc.utils

shpc/client/sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import os

shpc/client/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import shpc.utils

shpc/client/uninstall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import shpc.utils

shpc/client/update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import shpc.utils

shpc/client/view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2023-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import os

shpc/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import os

shpc/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import inspect

shpc/main/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55

shpc/main/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55

shpc/main/container/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55

shpc/main/container/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55

shpc/main/container/docker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55

shpc/main/container/podman.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55

shpc/main/container/singularity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55

shpc/main/container/update/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
from shpc.logger import logger

shpc/main/container/update/diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import difflib

shpc/main/container/update/docker.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

5+
import re
6+
57
import requests
68

79
from shpc.logger import logger
@@ -34,7 +36,10 @@ def tags(self):
3436
"""
3537
url = "%s/ls/%s" % (self.apiroot, self.container_name)
3638
response = self.get_request(url)
37-
return [x.strip() for x in response.text.split("\n") if x.strip()]
39+
tags = [x.strip() for x in response.text.split("\n") if x.strip()]
40+
# Don't include tags for vex or sbom
41+
tags = [x for x in tags if not re.search("[.](sbom|vex)$", x)]
42+
return tags
3843

3944
def manifest(self, tag):
4045
url = "%s/manifest/%s:%s" % (self.apiroot, self.container_name, tag)

shpc/main/container/update/versions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import re

shpc/main/modules/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import inspect

shpc/main/modules/lmod.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
from .base import ModuleBase

shpc/main/modules/module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2022-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import os

shpc/main/modules/tcl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
from .base import ModuleBase

shpc/main/modules/template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55

shpc/main/modules/versions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import os

shpc/main/modules/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2022-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55
import os

shpc/main/registry/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55

shpc/main/registry/filesystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Vanessa Sochat"
2-
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
2+
__copyright__ = "Copyright 2021-2024, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

55

0 commit comments

Comments
 (0)