forked from ComplianceAsCode/content
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'demo-pst' into bsi-app-4.4-a8to11
- Loading branch information
Showing
2,844 changed files
with
101,169 additions
and
14,205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Gate Thin DS | ||
on: | ||
merge_group: | ||
branches: [ 'master' ] | ||
push: | ||
branches: ['*', '!stabilization*', '!stable*', 'master' ] | ||
pull_request: | ||
branches: [ 'master', 'stabilization*' ] | ||
concurrency: | ||
group: ${{ github.workflow }}-fedora-${{ github.event.number || github.run_id }} | ||
cancel-in-progress: true | ||
jobs: | ||
build-and-test-thin-ds: | ||
name: Build, Test on Fedora Latest (Container) | ||
runs-on: ubuntu-latest | ||
container: | ||
image: fedora:latest | ||
steps: | ||
- name: Install Deps | ||
run: dnf install -y cmake make openscap-utils python3-pyyaml bats ansible python3-pip ShellCheck git gcc gcc-c++ python3-devel python3-lxml python3-pytest | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install deps python | ||
# pytest-xdist is used for parallel execution of thin ds test | ||
run: pip install pcre2 pytest-xdist -r requirements.txt -r test-requirements.txt | ||
- name: Build | ||
run: ./build_product rhel9 --thin | ||
- name: Test | ||
run: python3 -m pytest -n auto tests/test_thin_ds.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
name: Gate / Kubernetes Test Content Parsing | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.number || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
datastream-parsing: | ||
name: XCCDF Datastream parsing | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Copy XCCDF files from existing content image | ||
uses: nick-fields/retry@v3 | ||
with: | ||
timeout_minutes: 20 | ||
max_attempts: 3 | ||
retry_wait_seconds: 300 | ||
retry_on: error | ||
command: | | ||
mkdir -p content | ||
docker pull ghcr.io/complianceascode/k8scontent:${{ github.event.number }} | ||
docker run --rm -v $PWD/content:/content:z ghcr.io/complianceascode/k8scontent:${{ github.event.number }} bash -c "cp *.xml /content" | ||
- name: Clone compliance operator repository | ||
run: | | ||
git clone https://github.com/ComplianceAsCode/compliance-operator.git | ||
- name: Fetch go version used in compliance-operator go.mod | ||
run: | | ||
cd compliance-operator | ||
go mod edit -json | jq -r '.Go' > go-version | ||
if [ ! -s go-version ]; then | ||
echo "Failed to fetch go version from compliance-operator go.mod" | ||
exit 1 | ||
fi | ||
- name: Save go version to be used in setup-go action | ||
id: save-go-version | ||
run: | | ||
echo "go-version=$(cat compliance-operator/go-version)" > compliance-operator/go-version | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ steps.save-go-version.outputs.go-version }} | ||
- name: Run ginkgo tests and check if each XCCDF file is parsed correctly | ||
run: | | ||
export DEFAULT_CONTENT_DS_FILE_PATH=$PWD/content | ||
cd compliance-operator | ||
make test-datastreams |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ jobs: | |
trestle href --name "${{ matrix.variables.profile-name }}" -hr "trestle://catalogs/${{ matrix.variables.catalog-name }}/catalog.json" | ||
working-directory: ./shared/references/oscal | ||
- name: Update content | ||
uses: peter-evans/[email protected].1 | ||
uses: peter-evans/[email protected].5 | ||
with: | ||
base: master | ||
branch: "oscal-update-${{ github.run_id }}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.