Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
regula-bot committed Dec 12, 2024
2 parents 131b008 + d63ed31 commit 2169a40
Show file tree
Hide file tree
Showing 43 changed files with 2,447 additions and 194 deletions.
84 changes: 84 additions & 0 deletions .github/workflows/back-merge-handler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Back Merge handler

on:
push:
branches:
- master
- stable

jobs:
pr_master_to_stable:
runs-on: ubuntu-latest
if: github.ref_name == 'master'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check if PR exists
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
prs=$(gh pr list \
--repo "$GITHUB_REPOSITORY" \
--json baseRefName,headRefName \
--jq '
map(select(.baseRefName == "stable" and .headRefName == "master"))
| length
')
if ((prs > 0)); then
echo "Pull Request already exists"
echo "SKIP=true" >> $GITHUB_ENV
fi
- name: Check if stable is ahead
run: |
commits=$(git rev-list origin/stable..origin/master --count)
if ((commits == 0)); then
echo "No diffs was found between branches"
echo "SKIP=true" >> $GITHUB_ENV
fi
- name: Create Pull Request
if: env.SKIP != 'true'
run: gh pr create -B stable -H master --title '[GitHub Actions] Merge master -> stable' --label back-merge --body 'Autogenerated Pull Request for `back-merge` triggered by Github Actions'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pr_stable_to_develop:
runs-on: ubuntu-latest
if: github.ref_name == 'stable'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check if PR exists
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
prs=$(gh pr list \
--repo "$GITHUB_REPOSITORY" \
--json baseRefName,headRefName \
--jq '
map(select(.baseRefName == "develop" and .headRefName == "stable"))
| length
')
if ((prs > 0)); then
echo "Pull Request already exists"
echo "SKIP=true" >> $GITHUB_ENV
fi
- name: Check if stable is ahead
run: |
commits=$(git rev-list origin/develop..origin/stable --count)
if ((commits == 0)); then
echo "No diffs was found between branches"
echo "SKIP=true" >> $GITHUB_ENV
fi
- name: Create Pull Request
if: env.SKIP != 'true'
run: gh pr create -B develop -H stable --title '[GitHub Actions] Merge stable -> develop' --label back-merge --body 'Autogenerated Pull Request for `back-merge` triggered by Github Actions'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/sast.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
# List of paths (space separated) to ignore
# Supports PATTERNS
# EXCLUDE_PATHS: 'foo bar/baz file.txt dir/*.yml'
EXCLUDE_PATHS: ''
EXCLUDE_PATHS: 'generator-templates regula/documentreader/webclient/gen'
# List of rules (space separated) to ignore
# EXCLUDE_RULES: 'generic.secrets.security.detected-aws-account-id.detected-aws-account-id'
# See https://github.com/semgrep/semgrep-rules for rules registry
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trivy-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ jobs:
exit-code: '1'
ignore-unfixed: true
severity: 'CRITICAL,HIGH,MEDIUM,LOW'
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
3 changes: 0 additions & 3 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ README.md
.gitignore
setup.py
regula/documentreader/webclient/__init__.py

regula/documentreader/webclient/gen/models/container_list.py
regula/documentreader/webclient/gen/models/authenticity_check_result.py
9 changes: 8 additions & 1 deletion .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ regula/__init__.py
regula/documentreader/__init__.py
regula/documentreader/webclient/gen/__init__.py
regula/documentreader/webclient/gen/api/__init__.py
regula/documentreader/webclient/gen/api/default_api.py
regula/documentreader/webclient/gen/api/healthcheck_api.py
regula/documentreader/webclient/gen/api/process_api.py
regula/documentreader/webclient/gen/api/transaction_api.py
regula/documentreader/webclient/gen/api_client.py
Expand All @@ -13,17 +13,21 @@ regula/documentreader/webclient/gen/models/area_array.py
regula/documentreader/webclient/gen/models/area_container.py
regula/documentreader/webclient/gen/models/auth_params.py
regula/documentreader/webclient/gen/models/authenticity_check_list.py
regula/documentreader/webclient/gen/models/authenticity_check_result.py
regula/documentreader/webclient/gen/models/authenticity_check_result_item.py
regula/documentreader/webclient/gen/models/authenticity_result.py
regula/documentreader/webclient/gen/models/authenticity_result_all_of.py
regula/documentreader/webclient/gen/models/authenticity_result_type.py
regula/documentreader/webclient/gen/models/bc_pdf417_info.py
regula/documentreader/webclient/gen/models/bc_roidetect.py
regula/documentreader/webclient/gen/models/byte_array_result.py
regula/documentreader/webclient/gen/models/byte_array_result_all_of.py
regula/documentreader/webclient/gen/models/check_diagnose.py
regula/documentreader/webclient/gen/models/check_result.py
regula/documentreader/webclient/gen/models/chosen_document_type.py
regula/documentreader/webclient/gen/models/chosen_document_type_result.py
regula/documentreader/webclient/gen/models/chosen_document_type_result_all_of.py
regula/documentreader/webclient/gen/models/container_list.py
regula/documentreader/webclient/gen/models/critical.py
regula/documentreader/webclient/gen/models/cross_source_value_comparison.py
regula/documentreader/webclient/gen/models/data_module.py
Expand All @@ -48,6 +52,7 @@ regula/documentreader/webclient/gen/models/document_types_candidates.py
regula/documentreader/webclient/gen/models/document_types_candidates_list.py
regula/documentreader/webclient/gen/models/document_types_candidates_result.py
regula/documentreader/webclient/gen/models/document_types_candidates_result_all_of.py
regula/documentreader/webclient/gen/models/documents_database.py
regula/documentreader/webclient/gen/models/encrypted_rcl_result.py
regula/documentreader/webclient/gen/models/encrypted_rcl_result_all_of.py
regula/documentreader/webclient/gen/models/face_api.py
Expand All @@ -61,6 +66,8 @@ regula/documentreader/webclient/gen/models/graphic_field_type.py
regula/documentreader/webclient/gen/models/graphic_fields_list.py
regula/documentreader/webclient/gen/models/graphics_result.py
regula/documentreader/webclient/gen/models/graphics_result_all_of.py
regula/documentreader/webclient/gen/models/healthcheck.py
regula/documentreader/webclient/gen/models/healthcheck_documents_database.py
regula/documentreader/webclient/gen/models/ident_result.py
regula/documentreader/webclient/gen/models/ident_result_all_of.py
regula/documentreader/webclient/gen/models/image_data.py
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ idna = "==3.7"
requests = ">=2.32.3"

[dev-packages]
setuptools = ">=21.0.0"
setuptools = "==74.1.1"
wheel = "*"
twine = "*"
chardet = "*"
Expand Down
72 changes: 32 additions & 40 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2169a40

Please sign in to comment.