Skip to content

Commit 360ca8d

Browse files
authored
Merge branch 'master' into copilot/fix-3069
2 parents 4e5cf7f + d581abc commit 360ca8d

File tree

495 files changed

+6183
-15181
lines changed

Some content is hidden

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

495 files changed

+6183
-15181
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
custom: https://www.icrc.org/en/donate/ukraine
1+
custom: https://mas.owasp.org/donate/how_to_donate/

.github/ISSUE_TEMPLATE/bug-report-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ body:
2323
id: where
2424
attributes:
2525
label: App Name
26-
description: Name of crackme or challenge app that is broken. See all apps [here](https://github.com/OWASP/owasp-mastg/tree/master/Crackmes).
26+
description: Name of crackme or challenge app that is broken. See all apps [here](https://github.com/OWASP/mastg/tree/master/Crackmes).
2727
placeholder: e.g. UnCrackable App for Android Level 1
2828
validations:
2929
required: true

.github/scripts/check_duplicate_ids.py

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"tests-beta",
1515
"tools",
1616
"techniques",
17-
"weaknesses"
1817
]
1918

2019
# Regex patterns for different file types
@@ -23,16 +22,10 @@
2322
"demos": r"MASTG-DEMO-(\d{4})",
2423
"techniques": r"MASTG-TECH-(\d{4})",
2524
"tools": r"MASTG-TOOL-(\d{4})",
26-
"weaknesses": r"MASWE-(\d{4})",
2725
"apps": r"MASTG-APP-(\d{4})",
2826
"tests-beta": r"MASTG-TEST-(\d{4})"
2927
}
3028

31-
# Special handling for patterns that don't match folder names
32-
FOLDER_TO_PATTERN = {
33-
"weaknesses": ["weaknesses"]
34-
}
35-
3629
def find_next_available_id(prefix, existing_ids):
3730
"""Find the next available ID for a given prefix"""
3831
if not existing_ids:
@@ -84,11 +77,6 @@ def main():
8477
if key in folder:
8578
prefix_match = key
8679
break
87-
# Check special mappings
88-
for pattern_folder, patterns in FOLDER_TO_PATTERN.items():
89-
if folder in patterns and key == pattern_folder:
90-
prefix_match = key
91-
break
9280

9381
if not prefix_match:
9482
print(f"Warning: No pattern match found for folder: {folder}")
@@ -112,12 +100,7 @@ def main():
112100
file_id = match.group(0) # Full match like MASTG-BEST-0001
113101
id_number = match.group(1) # Just the number part (0001)
114102

115-
# For MASWE files, the prefix is just "MASWE"
116-
if "MASWE" in file_id:
117-
id_prefix = "MASWE"
118-
else:
119-
# For other files, split by dash and take first two parts
120-
id_prefix = "-".join(file_id.split("-")[:2])
103+
id_prefix = "-".join(file_id.split("-")[:2])
121104

122105
# Record the ID and its associated path
123106
existing_ids_by_prefix[id_prefix].append(id_number)
@@ -147,10 +130,6 @@ def main():
147130
if key in filepath:
148131
prefix_match = key
149132
break
150-
151-
# Special case for MASWE files in weaknesses folder
152-
if "weaknesses" in filepath and not prefix_match:
153-
prefix_match = "weaknesses"
154133

155134
if not prefix_match:
156135
print(f"Warning: No pattern match found for file: {filepath}")
@@ -170,12 +149,7 @@ def main():
170149
file_id = match.group(0) # Full match like MASTG-BEST-0001
171150
id_number = match.group(1) # Just the number part (0001)
172151

173-
# For MASWE files, the prefix is just "MASWE"
174-
if "MASWE" in file_id:
175-
id_prefix = "MASWE"
176-
else:
177-
# For other files, split by dash and take first two parts
178-
id_prefix = "-".join(file_id.split("-")[:2])
152+
id_prefix = "-".join(file_id.split("-")[:2])
179153

180154
print(f"Found ID: {file_id} with prefix: {id_prefix} in new file: {filepath}")
181155

.github/workflows/build-website-reusable.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/workflows/build-website.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/check-duplicate-ids.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
- 'tests-beta/**'
1010
- 'tools/**'
1111
- 'techniques/**'
12-
- 'weaknesses/**'
1312

1413
jobs:
1514
check-duplicates:
@@ -37,7 +36,7 @@ jobs:
3736
git fetch origin $BASE_REF
3837
3938
# Create a file with the list of new files in this PR
40-
git diff --name-status --diff-filter=A origin/$BASE_REF..HEAD | grep -E "^A\s+(apps/|best-practices/|demos/|tests-beta/|tools/|techniques/|weaknesses/)" | cut -f2 > new_files_in_pr.txt || echo "No new files matching the pattern"
39+
git diff --name-status --diff-filter=A origin/$BASE_REF..HEAD | grep -E "^A\s+(apps/|best-practices/|demos/|tests-beta/|tools/|techniques/)" | cut -f2 > new_files_in_pr.txt || echo "No new files matching the pattern"
4140
4241
echo "New files in PR:"
4342
cat new_files_in_pr.txt
@@ -63,11 +62,6 @@ jobs:
6362
// Extract the ID prefix for a more specific message
6463
let idType = duplicate.file_id.split('-').slice(0, 2).join('-');
6564
66-
// Special case for MASWE which only has one segment
67-
if (duplicate.file_id.startsWith('MASWE')) {
68-
idType = 'MASWE';
69-
}
70-
7165
// Choose the appropriate header style based on comment type
7266
const headerPrefix = isReviewComment ? '###' : '##';
7367

.github/workflows/check-website-build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ on:
33
pull_request:
44
branches:
55
- "*"
6+
67
jobs:
78
build:
8-
uses: ./.github/workflows/build-website-reusable.yml
9+
uses: OWASP/mas-website/.github/workflows/build-website-reusable.yml@main
910
with:
10-
deploy: false
11+
deploy: false
12+
sources_override_json: ${{ format('{{"OWASP/mastg":"refs/pull/{0}/head"}}', github.event.pull_request.number) }}

.github/workflows/config/url-checker-config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@
119119
},
120120
{
121121
"pattern": "^/checklists/"
122+
},
123+
{
124+
"pattern": "https://techbeacon.com/evolution-devops-new-thinking-gene-kim"
125+
},
126+
{
127+
"pattern": "https://research.checkpoint.com/2020/new-joker-variant-hits-google-play-with-an-old-trick/"
122128
}
123129

124130
],

.github/workflows/docgenerator.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
- name: Set MASTG_VERSION to env
3232
# run: echo "MASTG_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_ENV
33-
run: echo "MASTG_VERSION=$(curl -s https://api.github.com/repos/OWASP/owasp-mastg/tags | jq '.[0].name' | sed 's/\"//g')" >> $GITHUB_ENV
33+
run: echo "MASTG_VERSION=$(curl -s https://api.github.com/repos/OWASP/mastg/tags | jq '.[0].name' | sed 's/\"//g')" >> $GITHUB_ENV
3434

3535
- name: Set DEV VERSION if it's not a tag
3636
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
@@ -45,14 +45,14 @@ jobs:
4545
run: echo ${{env.MASTG_COMMIT}}
4646

4747
- name: Get Latest MASVS Release Tag
48-
run: echo "MASVS_VERSION=$(curl -s https://api.github.com/repos/OWASP/owasp-masvs/releases/latest | jq '.tag_name' | sed 's/\"//g')" >> $GITHUB_ENV
48+
run: echo "MASVS_VERSION=$(curl -s https://api.github.com/repos/OWASP/masvs/releases/latest | jq '.tag_name' | sed 's/\"//g')" >> $GITHUB_ENV
4949

5050
- name: Confirm MASVS Release Tag
5151
run: echo ${{env.MASVS_VERSION}}
5252

5353
- uses: actions/checkout@v4
5454
with:
55-
repository: "OWASP/owasp-masvs.git"
55+
repository: "OWASP/masvs.git"
5656
ref: ${{env.MASVS_VERSION}}
5757
fetch-depth: 1
5858
path: owasp-masvs

.github/workflows/spell-checker.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ jobs:
1515
with:
1616
ignore_words_list: "aas,aaS,ba,bund,compliancy,firt,ist,keypair,ligh,Manuel,Manual,ro,ser,synopsys,theses,zuser,lief,EDE"
1717
skip: "*.json,*.yml,*.apk,*.ipa,*.svg,*.txt"
18-
exclude_file: docs/contributing.md

0 commit comments

Comments
 (0)