Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Test #23

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/compare-ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,27 @@ jobs:
run: dnf install -y cmake make openscap-utils python3-pyyaml python3-setuptools python3-jinja2 git python3-deepdiff python3-requests jq python3-pip
- name: Install deps python
run: pip install gitpython xmldiff
- name: Checkout master
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Find forking point
env:
BASE_BRANCH: ${{ github.base_ref }}
run: echo "::set-output name=FORK_POINT::$(git merge-base --fork-point origin/$BASE_BRANCH)"
id: fork_point
- name: Checkout fork point
uses: actions/checkout@v2
with:
ref: master
ref: ${{ steps.fork_point.outputs.FORK_POINT }}
fetch-depth: 0
- name: Checkout (CTF)
uses: actions/checkout@v2
with:
repository: mildas/content-test-filtering
path: ctf
- name: Detect content changes in the PR
run: python3 ./ctf/content_test_filtering.py pr --rule --output json ${{ github.event.pull_request.number }} > output.json
run: python3 ./ctf/content_test_filtering.py pr --remote_repo https://github.com/ggbecker/content --rule --output json ${{ github.event.pull_request.number }} > output.json
- name: Test if there are no content changes
run: echo "::set-output name=CTF_OUTPUT_SIZE::$(stat --printf="%s" output.json)"
id: ctf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ template:
missing_parameter_pass: 'true'
parameter: StrictModes
rule_id: sshd_enable_strictmodes
value: 'yes'
value: 'no'