diff --git a/.github/workflows/ssgts.yaml b/.github/workflows/ssgts.yaml index a209bc8a1e1..5cf5255ca4b 100644 --- a/.github/workflows/ssgts.yaml +++ b/.github/workflows/ssgts.yaml @@ -21,10 +21,15 @@ jobs: 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 + - uses: actions/upload-artifact@v2 + if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} + with: + name: output.json + path: output.json - name: Print changes to content detected if any if: ${{ steps.ctf.outputs.CTF_OUTPUT_SIZE != '0' }} run: cat output.json @@ -51,16 +56,12 @@ jobs: - name: Install Deps uses: mstksg/get-package@master with: - apt-get: cmake ninja-build libopenscap8 libxml2-utils expat xsltproc python3-jinja2 python3-yaml ansible-lint python3-github podman git python3-deepdiff python3-git python3-requests xmldiff jq + apt-get: cmake ninja-build libopenscap8 libxml2-utils expat xsltproc python3-jinja2 python3-yaml ansible-lint podman - name: Checkout uses: actions/checkout@v2 - - name: Checkout (CTF) - uses: actions/checkout@v2 + - uses: actions/download-artifact@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 + name: 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 diff --git a/linux_os/guide/services/ssh/ssh_server/sshd_enable_strictmodes/rule.yml b/linux_os/guide/services/ssh/ssh_server/sshd_enable_strictmodes/rule.yml index 31968bc560a..b22e2046772 100644 --- a/linux_os/guide/services/ssh/ssh_server/sshd_enable_strictmodes/rule.yml +++ b/linux_os/guide/services/ssh/ssh_server/sshd_enable_strictmodes/rule.yml @@ -56,4 +56,4 @@ template: missing_parameter_pass: 'true' parameter: StrictModes rule_id: sshd_enable_strictmodes - value: 'yes' + value: 'no'