summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/ISSUE_TEMPLATE/bug_report.md33
-rw-r--r--.github/ISSUE_TEMPLATE/feature_request.md26
-rw-r--r--.github/ISSUE_TEMPLATE/other-issues---question.md11
-rw-r--r--.github/dependabot.yml12
-rw-r--r--.github/workflows/codespell.yml16
-rw-r--r--.github/workflows/docker-3.2.yml63
-rw-r--r--.github/workflows/test.yml40
7 files changed, 201 insertions, 0 deletions
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 0000000..8adda54
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,33 @@
+---
+name: Bug report
+about: Create a report to help us improve
+title: "[BUG / possible BUG]"
+labels: ''
+assignees: ''
+
+---
+<!---
+
+_Feel free to remove this line but please stick to the template. We would like to reproduce the bug and therefore need concise information. Depending on the completeness of your information provided we might close your issue otherwise right away. _
+-->
+
+**Before you open an issue please check which version you are running and whether it is the latest in stable / dev branch**
+I am running version ( ``git log | head -1`` / ``testssl.sh -v | grep from``)
+
+**Before you open an issue please whether this is a known problem by searching the issues**
+Is related to / couldn't find anything
+
+**Command line / docker command to reproduce**
+Which was your command line? In addition the target of your scan would be helpful. If you don't want to disclose it publicly: ``grep SWCONTACT testssl.sh``.
+
+**Expected behavior**
+A clear and concise description of what you expected to happen.
+
+
+**Your system (please complete the following information):**
+ - OS: ``awk -F\" '/PRETTY_NAME/ { print $2 }' /etc/os-release``
+ - Platform: ``uname -srm``
+ - OpenSSL: ``testssl.sh -b 2>/dev/null | awk -F':' '/openssl/ { print $2}'``
+
+**Additional context**
+Add any other context about the problem here.
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644
index 0000000..a7d15e3
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,26 @@
+---
+name: Feature request
+about: Suggest an idea for this project
+title: "[Feature request]"
+labels: ''
+assignees: ''
+
+---
+<!---
+Feel free to remove this line but please stick to the template. Not filling out anything might result in immediate closing your feature request.
+-->
+
+**Which version are you referring to**
+3.0.x or 3.2?
+
+
+**Please check this repo whether this is a known feature request**
+If in doubt check the git log and/or check whether you run the latest version from the git repo. Maybe this was solved already?
+
+**Describe your feature request (if it's a technical feature)**
+
+**If your feature request otherwise is related to a usage problem, please describe it**
+A clear and concise description of what the problem is. Example: I'm always frustrated when [...]
+
+**Describe the solution you'd like**
+A clear and concise description of what you want to happen instead.
diff --git a/.github/ISSUE_TEMPLATE/other-issues---question.md b/.github/ISSUE_TEMPLATE/other-issues---question.md
new file mode 100644
index 0000000..490a660
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/other-issues---question.md
@@ -0,0 +1,11 @@
+---
+name: Other issues / Question
+about: Anything else which is not covered by a bug report or feature request
+title: ''
+labels: ''
+assignees: ''
+
+---
+
+**Which version are you referring to**
+3.0.x or 3.2? (please check also how old your version is compare to the ones here)
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..4cff4d6
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,12 @@
+# To get started with Dependabot version updates, you'll need to specify which
+# package ecosystems to update and where the package manifests are located.
+# Please see the documentation for all configuration options:
+# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
+
+version: 2
+updates:
+ # Maintain dependencies for GitHub Actions
+ - package-ecosystem: "github-actions"
+ directory: "/"
+ schedule:
+ interval: "daily"
diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml
new file mode 100644
index 0000000..c41d337
--- /dev/null
+++ b/.github/workflows/codespell.yml
@@ -0,0 +1,16 @@
+---
+name: Codespell
+on: [push, pull_request]
+permissions:
+ contents: read
+
+jobs:
+ codespell:
+ name: Check for spelling errors
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: codespell-project/actions-codespell@master
+ with:
+ skip: ca_hashes.txt,tls_data.txt,*.pem,OPENSSL-LICENSE.txt,CREDITS.md,openssl.cnf
+ ignore_words_list: borken,gost,ciph,ba,bloc,isnt,chello,fo,alle,anull
diff --git a/.github/workflows/docker-3.2.yml b/.github/workflows/docker-3.2.yml
new file mode 100644
index 0000000..8f01da6
--- /dev/null
+++ b/.github/workflows/docker-3.2.yml
@@ -0,0 +1,63 @@
+name: docker-3.2
+
+on:
+ push:
+ branches:
+ - 3.2
+ workflow_dispatch:
+ schedule:
+ - cron: "0 8 * * 1"
+
+env:
+ BUILD_VERSION: "3.2"
+ DOCKER_CLI_EXPERIMENTAL: enabled
+
+jobs:
+
+ deploy:
+ runs-on: ubuntu-22.04
+
+ steps:
+ - name: Source checkout
+ uses: actions/checkout@v4
+
+ - name: Setup QEMU
+ id: qemu
+ uses: docker/setup-qemu-action@v3.0.0
+
+ - name: Setup Buildx
+ id: buildx
+ uses: docker/setup-buildx-action@v3
+
+ - name: Set Docker metadata
+ id: docker_meta
+ uses: docker/metadata-action@v5
+ with:
+ images: ${{ github.repository }}
+ labels: |
+ org.opencontainers.image.version=${{ env.BUILD_VERSION }}
+ org.opencontainers.image.revision=${{ github.sha }}
+ org.opencontainers.image.title=${{ github.repository }}
+
+ - name: GitHub login
+ if: ${{ github.event_name != 'pull_request' }}
+ uses: docker/login-action@v3.0.0
+ with:
+ registry: ghcr.io
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Build and push
+ uses: docker/build-push-action@v5.0.0
+ with:
+ push: ${{ github.event_name != 'pull_request' }}
+ context: .
+ file: Dockerfile.git
+ platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6,linux/ppc64le
+ build-args: BUILD_VERSION
+ cache-from: type=gha, scope=${{ github.workflow }}
+ cache-to: type=gha, scope=${{ github.workflow }}
+ labels: ${{ steps.docker_meta.outputs.labels }}
+ tags: |
+ ghcr.io/${{ github.repository }}:${{ env.BUILD_VERSION }}
+ ghcr.io/${{ github.repository }}:latest
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..bb69122
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,40 @@
+name: testssl.sh CI
+
+on:
+ pull_request:
+ paths-ignore:
+ - 'utils/**'
+ - 'doc/**'
+ - 'bin/**'
+ - '**.md'
+ - '**.pem'
+ - '**.pdf'
+ - '**.html'
+ - 'LICENSE'
+ - 'Dockerfile'
+
+permissions:
+ contents: read
+
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: ['ubuntu-22.04']
+ perl: ['5.26']
+ name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
+ steps:
+ - uses: actions/checkout@v4
+ - name: Set up perl
+ uses: shogo82148/actions-setup-perl@v1
+ with:
+ perl-version: ${{ matrix.perl }}
+ - run: perl -V
+ - name: Install deps
+ run: sudo apt install dnsutils jsonlint
+ - run: cpanm --notest Test::More
+ - run: cpanm --notest Data::Dumper
+ - run: cpanm --notest JSON
+ - run: cpanm --notest Text::Diff
+ - run: prove -v