diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a72ad53..2775379 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -13,6 +13,7 @@ jobs: packages: write strategy: + fail-fast: false matrix: images: - dir: bandit-github diff --git a/.golangci.yaml b/.golangci.yaml index 0b94a1e..7a70ad0 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -2,6 +2,7 @@ linters: enable-all: true disable: - exhaustivestruct + - exhaustruct - forbidigo - gochecknoglobals - gomnd diff --git a/README.md b/README.md index f45ff97..ef2aad1 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,4 @@ Collection of custom GitHub Actions. | Action | Summary | | - | - | | [prepare-img-tag](prepare-img-tag) | Prepare a tag for Docker images and decide if they should be published. | -| [bandit-python](bandit-python)| Posts [bandit](https://github.com/PyCQA/bandit) code security issues as a comment in a pull request. | +| [bandit-github](bandit-github)| Posts [bandit](https://github.com/PyCQA/bandit) code security issues as a comment in a pull request. | diff --git a/bandit-python/.gitignore b/bandit-github/.gitignore similarity index 100% rename from bandit-python/.gitignore rename to bandit-github/.gitignore diff --git a/bandit-python/Dockerfile b/bandit-github/Dockerfile similarity index 81% rename from bandit-python/Dockerfile rename to bandit-github/Dockerfile index 05527ae..35b3e8a 100644 --- a/bandit-python/Dockerfile +++ b/bandit-github/Dockerfile @@ -2,7 +2,7 @@ FROM python:3.9-alpine WORKDIR /app -COPY bandit_python bandit_python +COPY bandit_github bandit_github COPY setup.py setup.py RUN pip install . diff --git a/bandit-python/README.md b/bandit-github/README.md similarity index 100% rename from bandit-python/README.md rename to bandit-github/README.md diff --git a/bandit-python/action.yaml b/bandit-github/action.yaml similarity index 96% rename from bandit-python/action.yaml rename to bandit-github/action.yaml index 453138a..1da4cac 100644 --- a/bandit-python/action.yaml +++ b/bandit-github/action.yaml @@ -34,7 +34,7 @@ inputs: required: true runs: using: 'docker' - image: 'docker://ghcr.io/snapaddy/actions-bandit-python:1.3.5' + image: 'docker://ghcr.io/snapaddy/actions-bandit-github:1.3.6' args: - ${{ inputs.path }} - ${{ inputs.level }} diff --git a/bandit-python/bandit_python/__init__.py b/bandit-github/bandit_github/__init__.py similarity index 100% rename from bandit-python/bandit_python/__init__.py rename to bandit-github/bandit_github/__init__.py diff --git a/bandit-python/bandit_python/formatter.py b/bandit-github/bandit_github/formatter.py similarity index 100% rename from bandit-python/bandit_python/formatter.py rename to bandit-github/bandit_github/formatter.py diff --git a/bandit-python/entrypoint.sh b/bandit-github/entrypoint.sh similarity index 100% rename from bandit-python/entrypoint.sh rename to bandit-github/entrypoint.sh diff --git a/bandit-python/setup.py b/bandit-github/setup.py similarity index 52% rename from bandit-python/setup.py rename to bandit-github/setup.py index f00409e..caa95c0 100644 --- a/bandit-python/setup.py +++ b/bandit-github/setup.py @@ -2,9 +2,9 @@ from setuptools import find_packages, setup setup( - name="bandit-python", + name="bandit-github", version="1.0.0", - packages=find_packages(include=["bandit_python"]), + packages=find_packages(include=["bandit_github"]), install_requires=["bandit", "requests"], - entry_points={"bandit.formatters": ["github = bandit_python.formatter:report"]}, + entry_points={"bandit.formatters": ["github = bandit_github.formatter:report"]}, ) diff --git a/prepare-img-tag/action.yaml b/prepare-img-tag/action.yaml index 715aaa5..bf36cab 100644 --- a/prepare-img-tag/action.yaml +++ b/prepare-img-tag/action.yaml @@ -13,4 +13,4 @@ outputs: description: Decides if images should be published runs: using: 'docker' - image: 'docker://ghcr.io/snapaddy/actions-prepare-img-tag:1.3.5' + image: 'docker://ghcr.io/snapaddy/actions-prepare-img-tag:1.3.6'