Skip to content

Commit 68f4319

Browse files
author
regula-bot
committed
Merge remote-tracking branch 'origin/develop' into stable
2 parents 1d1b1b6 + 36d37c9 commit 68f4319

6 files changed

Lines changed: 96 additions & 46 deletions

File tree

‎.github/workflows/back-merge-handler.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
if: github.ref_name == 'master'
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
1515
with:
1616
fetch-depth: 0
1717

@@ -49,7 +49,7 @@ jobs:
4949
runs-on: ubuntu-latest
5050
if: github.ref_name == 'stable'
5151
steps:
52-
- uses: actions/checkout@v4
52+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
5353
with:
5454
fetch-depth: 0
5555

‎.github/workflows/back-merge.yaml‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Back Merge
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- stable
8+
9+
jobs:
10+
back-merge:
11+
uses: regulaforensics/reusable-workflows/.github/workflows/back-merge.yaml@f9848fa9ec1ae1e6285b56200ac1f24fbfaee0c3 # main
12+
with:
13+
source_branch: ${{ github.ref_name }}
14+
merge_pairs: "master:stable,stable:develop"
15+
secrets:
16+
token: ${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/run-smoke-test.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
run_smoke_test:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
1515
- name: Set up Python
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
1717
with:
1818
python-version: 3.9
1919
- name: Install pipenv

‎.github/workflows/sast.yaml‎

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
name: Semgrep SAST
1+
# This repository is public and cannot call reusable workflows from a private
2+
# repository (regulaforensics/reusable-workflows). The logic below is a local
3+
# copy that mirrors the reusable workflow exactly. SHA pins are kept up-to-date
4+
# by Renovate (see renovate.json).
5+
name: SAST
26

37
on:
48
pull_request:
@@ -10,49 +14,32 @@ on:
1014
- main
1115
- master
1216

13-
env:
14-
# Fail workflow or not if vulnerabilities found
15-
FAIL_ON_VULNERABILITIES: true
16-
# List of paths (space separated) to ignore
17-
# Supports PATTERNS
18-
# EXCLUDE_PATHS: 'foo bar/baz file.txt dir/*.yml'
19-
EXCLUDE_PATHS: 'generator-templates regula/documentreader/webclient/gen .github'
20-
# List of rules (space separated) to ignore
21-
# EXCLUDE_RULES: 'generic.secrets.security.detected-aws-account-id.detected-aws-account-id'
22-
# See https://github.com/semgrep/semgrep-rules for rules registry
23-
EXCLUDE_RULES: ''
24-
2517
jobs:
2618
semgrep:
2719
name: semgrep-oss/scan
2820
runs-on: ubuntu-latest
2921
container:
30-
image: semgrep/semgrep
22+
image: semgrep/semgrep@sha256:65dcd4408adda7c183a6b4550cb1e9b19f7f627a6fbb7e0559bd466bedc44d7b
3123
steps:
32-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3325
- name: Scan
3426
shell: bash
27+
env:
28+
EXCLUDE_PATHS: 'generator-templates regula/documentreader/webclient/gen .github'
29+
EXCLUDE_RULES: ''
3530
run: |
3631
EXCLUDED_PATHS=()
37-
if [[ ! -z $EXCLUDE_PATHS ]]; then
32+
if [[ -n "$EXCLUDE_PATHS" ]]; then
3833
for path in $EXCLUDE_PATHS; do
39-
EXCLUDED_PATHS+=("--exclude $path")
34+
EXCLUDED_PATHS+=("--exclude" "$path")
4035
done
4136
fi
4237
4338
EXCLUDED_RULES=()
44-
if [[ ! -z $EXCLUDE_RULES ]]; then
39+
if [[ -n "$EXCLUDE_RULES" ]]; then
4540
for rule in $EXCLUDE_RULES; do
46-
EXCLUDED_RULES+=("--exclude-rule $rule")
41+
EXCLUDED_RULES+=("--exclude-rule" "$rule")
4742
done
4843
fi
4944
50-
if [[ $FAIL_ON_VULNERABILITIES == "true" ]]; then
51-
semgrep scan --config auto ${EXCLUDED_PATHS[@]} ${EXCLUDED_RULES[@]} --error --verbose
52-
elif [[ $FAIL_ON_VULNERABILITIES == "false" ]]; then
53-
semgrep scan --config auto ${EXCLUDED_PATHS[@]} ${EXCLUDED_RULES[@]} --error --verbose || true
54-
else
55-
echo "Bad FAIL_ON_VULNERABILITIES env var value"
56-
exit 1
57-
fi
58-
45+
semgrep scan --config auto "${EXCLUDED_PATHS[@]}" "${EXCLUDED_RULES[@]}" --error --verbose

‎.github/workflows/trivy-scan.yaml‎

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,32 @@
1+
# This repository is public and cannot call reusable workflows from a private
2+
# repository (regulaforensics/reusable-workflows). The logic below is a local
3+
# copy that mirrors the reusable workflow exactly. SHA pins are kept up-to-date
4+
# by Renovate (see renovate.json).
15
name: Trivy Scan
26

37
on:
48
pull_request:
59
branches:
6-
- main
7-
- master
810
- develop
11+
- staging
12+
- production
913
- stable
14+
- main
15+
- master
1016

1117
jobs:
1218
trivy-scan:
13-
name: Scanner
1419
runs-on: ubuntu-latest
1520
steps:
16-
- name: Checkout code
17-
uses: actions/checkout@v3
21+
- name: Checkout code
22+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1823

19-
- name: Run Trivy vulnerability scanner in fs mode
20-
uses: aquasecurity/trivy-action@master
21-
with:
22-
scan-type: 'fs'
23-
exit-code: '1'
24-
ignore-unfixed: true
25-
severity: 'CRITICAL,HIGH,MEDIUM,LOW'
26-
env:
27-
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
24+
- name: Run Trivy scanner
25+
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
26+
with:
27+
scan-type: 'fs'
28+
exit-code: '1'
29+
ignore-unfixed: true
30+
severity: 'CRITICAL,HIGH,MEDIUM,LOW'
31+
env:
32+
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2

‎renovate.json‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended",
5+
"helpers:pinGitHubActionDigests"
6+
],
7+
"enabledManagers": [
8+
"github-actions"
9+
],
10+
"labels": [
11+
"dependencies"
12+
],
13+
"prBodyNotes": [
14+
"https://redmine.regulaforensics.com/issues/58096"
15+
],
16+
"packageRules": [
17+
{
18+
"description": "Update all GitHub Actions to latest, including major version bumps",
19+
"matchManagers": [
20+
"github-actions"
21+
],
22+
"groupName": "GitHub Actions dependencies",
23+
"groupSlug": "github-actions-deps",
24+
"matchUpdateTypes": [
25+
"major",
26+
"minor",
27+
"patch",
28+
"pin",
29+
"digest"
30+
],
31+
"schedule": [
32+
"before 6am on wednesday"
33+
],
34+
"automerge": false,
35+
"enabled": true
36+
}
37+
],
38+
"github-actions": {
39+
"enabled": true,
40+
"pinDigests": true
41+
}
42+
}

0 commit comments

Comments
 (0)