Skip to content

Commit 1638392

Browse files
authored
Merge branch 'develop' into feat/xlsx-to-oscal-poam-clean
2 parents 022522d + a013ac8 commit 1638392

338 files changed

Lines changed: 150764 additions & 9974 deletions

File tree

Some content is hidden

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

.github/actions/snyk-test/action.yaml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,13 @@ runs:
1919
env:
2020
SNYK_TOKEN: ${{ inputs.token }}
2121
run: |
22-
echo "::group::Running synk test ..."
23-
python -m venv venv-test
24-
source ./venv-test/bin/activate
22+
echo "::group::Running snyk test ..."
23+
# latest pip-tools incompatible with pip 26.0
24+
pip install --force-reinstall 'pip<26.0'
2525
pip install pip-tools
2626
pip-compile pyproject.toml -o requirements.txt
2727
pip install -r requirements.txt
2828
snyk test --file=requirements.txt
29-
echo "::endgroup::"
30-
shell: bash
31-
32-
- name: Cleanup
33-
if: success() || failure()
34-
run: |
3529
rm requirements.txt
36-
rm -rf ./venv-test
30+
echo "::endgroup::"
3731
shell: bash

.github/security-insights.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
header:
22
schema-version: 2.0.0
3-
last-updated: '2025-03-20'
4-
last-reviewed: '2025-03-20'
3+
last-updated: '2026-04-17'
4+
last-reviewed: '2026-04-17'
55
url: https://github.com/oscal-compass/compliance-trestle/blob/develop/.github/security-insights.yml
66
project-si-source: https://raw.githubusercontent.com/oscal-compass/.github/refs/heads/main/.github/security-insights.yml
77
comment: |
@@ -17,21 +17,16 @@ repository:
1717
# From the complaince-trestle MAINTAINER.md file
1818
# https://github.com/oscal-compass/compliance-trestle/blob/develop/MAINTAINERS.md
1919
core-team:
20-
- name: Alejandro Jose Leiva Palomo
21-
primary: true
2220
- name: Christopher Butler
2321
primary: true
2422
- name: Lou Degenaro
2523
primary: true
26-
- name: Jennifer Power
27-
primary: true
28-
- name: Manjiree Gadgil
29-
primary: true
3024
- name: Vikas Agarwal
3125
primary: true
3226
documentation:
3327
contributing-guide: https://github.com/oscal-compass/compliance-trestle/blob/develop/CONTRIBUTING.md
3428
security-policy: https://github.com/oscal-compass/community/blob/main/SECURITY.md
29+
review-policy: https://github.com/oscal-compass/compliance-trestle/blob/develop/docs/code-review-policy.md
3530
license:
3631
url: https://github.com/oscal-compass/compliance-trestle/blob/develop/LICENSE
3732
expression: Apache-2.0

.github/workflows/act-test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Test workflows with act
2+
3+
on:
4+
pull_request:
5+
types: [labeled, synchronize, opened]
6+
paths:
7+
- '.github/**'
8+
9+
permissions: read-all
10+
11+
jobs:
12+
act-dry-run:
13+
if: contains(github.event.pull_request.labels.*.name, 'github_actions')
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17+
with:
18+
submodules: true
19+
20+
- name: Install act
21+
run: |
22+
curl -fsSL https://raw.githubusercontent.com/nektos/act/36add66f6520c77c15dfce4715ba6c689d427981/install.sh | sudo bash -s -- -b /usr/local/bin v0.2.87
23+
mkdir -p ~/.config/act
24+
printf -- '-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest\n' > ~/.config/act/actrc
25+
26+
- name: Dry-run actionlint workflow
27+
run: |
28+
act -n -W .github/workflows/actionlint.yml --container-architecture linux/amd64
29+
30+
- name: Dry-run PR test pipeline
31+
run: |
32+
act -n -W .github/workflows/python-test.yml --container-architecture linux/amd64
33+
34+
- name: Dry-run deploy pipeline
35+
run: |
36+
act -n -W .github/workflows/python-push.yml --container-architecture linux/amd64
37+
38+
- name: Dry-run conventional PR pipeline
39+
run: |
40+
act -n -W .github/workflows/conventional-pr.yml --container-architecture linux/amd64

.github/workflows/actionlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout the repository
18-
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1919
- name: Add problem matcher
2020
run: echo "::add-matcher::.github/actionlint-matcher.json"
2121
- name: Check workflow files

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ jobs:
5959
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
6060
steps:
6161
- name: Checkout repository
62-
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
62+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6363

6464
# Initializes the CodeQL tools for scanning.
6565
- name: Initialize CodeQL
66-
uses: github/codeql-action/init@fdbfb4d2750291e159f0156def62b853c2798ca2 # v4.31.5
66+
uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
6767
with:
6868
languages: ${{ matrix.language }}
6969
build-mode: ${{ matrix.build-mode }}
@@ -91,6 +91,6 @@ jobs:
9191
exit 1
9292
9393
- name: Perform CodeQL Analysis
94-
uses: github/codeql-action/analyze@fdbfb4d2750291e159f0156def62b853c2798ca2 # v4.31.5
94+
uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
9595
with:
9696
category: "/language:${{matrix.language}}"

.github/workflows/conventional-pr.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
branches:
1010
- 'main'
1111
- 'develop'
12+
- 'v[0-9]*'
1213
permissions:
1314
contents: read
1415

@@ -18,7 +19,7 @@ jobs:
1819
runs-on: ubuntu-latest
1920
steps:
2021
- name: Checkout code
21-
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
22+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2223

2324
- name: Install dependencies
2425
run: npm install @commitlint/cli @commitlint/config-conventional
@@ -27,3 +28,14 @@ jobs:
2728
run: |
2829
PR_TITLE=$(jq -r '.pull_request.title' "$GITHUB_EVENT_PATH")
2930
echo "$PR_TITLE" | npx commitlint --config commitlint.config.js
31+
32+
- name: Validate commit type for maintenance branch
33+
if: startsWith(github.base_ref, 'v')
34+
run: |
35+
PR_TITLE=$(jq -r '.pull_request.title' "$GITHUB_EVENT_PATH" | sed 's/^[[:space:]]*//')
36+
ALLOWED_TYPES='^(fix|perf|chore|ci|docs|build|refactor|style|test|revert)(\(.*\))?:'
37+
if ! echo "$PR_TITLE" | grep -qiE "$ALLOWED_TYPES"; then
38+
echo "::error::PR title must use an allowed type for maintenance branches: fix, perf, chore, ci, docs, build, refactor, style, test, revert."
39+
echo "::error::Got: $PR_TITLE"
40+
exit 1
41+
fi

.github/workflows/docs-update.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ on:
88
tags:
99
- v*
1010
permissions: read-all
11+
concurrency:
12+
group: docs-deploy-global
13+
cancel-in-progress: false
1114
jobs:
1215
set-versions:
1316
runs-on: ubuntu-latest
1417
outputs:
1518
min: ${{ steps.versions.outputs.min }}
1619
max: ${{ steps.versions.outputs.max }}
1720
steps:
18-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
21+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1922
- id: versions
2023
run: |
2124
min_version=$(jq '.PYTHON_MIN' -r version.json)
@@ -30,9 +33,9 @@ jobs:
3033
outputs:
3134
mver: ${{ steps.versions.outputs.mver }}
3235
steps:
33-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
36+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3437
- name: Set up Python ${{ needs.set-versions.outputs.max }}
35-
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
38+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3639
# This is deliberately not using a custom credential as it relies on native github actions token to have push rights.
3740
with:
3841
python-version: ${{ needs.set-versions.outputs.max }}
@@ -46,18 +49,18 @@ jobs:
4649
runs-on: ubuntu-latest
4750
needs: [ mike-version, set-versions ]
4851
steps:
49-
- uses: actions/create-github-app-token@7e473efe3cb98aa54f8d4bac15400b15fad77d94 # v2.2.0
52+
- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
5053
id: app-token
5154
with:
5255
app-id: ${{ secrets.APP_ID }}
5356
private-key: ${{ secrets.PRIVATE_KEY }}
54-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
57+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5558
with:
5659
submodules: true
5760
fetch-depth: 0
5861
token: ${{ steps.app-token.outputs.token }}
5962
- name: Set up Python ${{ needs.set-versions.outputs.max }}
60-
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
63+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
6164
# This is deliberately not using a custom credential as it relies on native github actions token to have push rights.
6265
with:
6366
python-version: ${{ needs.set-versions.outputs.max }}

0 commit comments

Comments
 (0)