Skip to content

Commit

Permalink
Merge pull request #6642 from Checkmarx/kics-764
Browse files Browse the repository at this point in the history
fix(query): deprecated Memcached disabled query
  • Loading branch information
asofsilva authored Feb 8, 2024
2 parents 013003e + d8480a1 commit 09fc8c4
Show file tree
Hide file tree
Showing 15 changed files with 63 additions and 233 deletions.
2 changes: 2 additions & 0 deletions .github/scripts/samples-linters/yamllint_ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ rules:
indentation:
indent-sequences: consistent
comments-indentation: disable
new-line-at-end-of-file: disable
trailing-spaces: disable
ignore: |
**/kms_key_with_full_permissions/test/positive.yaml
12 changes: 0 additions & 12 deletions assets/queries/ansible/aws/memcached_disabled/metadata.json

This file was deleted.

22 changes: 0 additions & 22 deletions assets/queries/ansible/aws/memcached_disabled/query.rego

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,43 +18,43 @@
name: sudo
state: latest
update_only: true

- name: Install nmap
community.general.zypper:
name: nmap
state: present

- name: Install package without using cache
community.general.apk:
name: foo
state: present
no_cache: true

- name: Install apache httpd
ansible.builtin.apt:
name: apache2
state: present

- name: Update Gemfile in another directory
community.general.bundler:
state: present
chdir: ~/rails_project

- name: Install a modularity appstream with defined profile
ansible.builtin.dnf:
name: '@postgresql/client'
name: "@postgresql/client"
state: present

- name: Install rake
community.general.gem:
name: rake
state: present

- name: Install formula foo with 'brew' from cask
community.general.homebrew:
name: homebrew/cask/foo
state: present

- name: Install Green Balls plugin
community.general.jenkins_plugin:
name: greenballs
Expand All @@ -64,87 +64,87 @@
username: user_jenkins
password: userpass_jenkins
register: result

- name: Install packages based on package.json
community.general.npm:
path: /app/location
state: present

- name: Install nmap
community.general.openbsd_pkg:
name: nmap
state: present

- name: Install ntpdate
ansible.builtin.package:
name: ntpdate
state: present

- name: Install package bar from file
community.general.pacman:
name: ~/bar-1.0-1-any.pkg.tar.xz
state: present

- name: Install package bar from file
community.general.pacman:
name: ~/bar-1.0-1-any.pkg.tar.xz
state: present

- name: Install finger daemon
community.general.pkg5:
name: service/network/finger
state: present

- name: Install several packages
community.general.pkgutil:
name:
- CSWsudo
- CSWtop
- CSWsudo
- CSWtop
state: present

- name: Install package foo
community.general.portage:
package: foo
state: present

- name: Make sure that it is the most updated package
community.general.slackpkg:
name: foo
state: present

- name: Make sure spell foo is installed
community.general.sorcery:
spell: foo
state: present

- name: Install package unzip
community.general.swdepot:
name: unzip
state: present
depot: 'repository:/path'
depot: "repository:/path"

- name: Install multiple packages
win_chocolatey:
name:
- procexp
- putty
- windirstat
- procexp
- putty
- windirstat
state: present

- name: Install "imagemin" node.js package globally.
community.general.yarn:
name: imagemin
global: true

- name: Install a list of packages (suitable replacement for 2.11 loop deprecation warning)
ansible.builtin.yum:
name:
- nginx
- postgresql
- postgresql-server
state: present

- name: Install local rpm file
community.general.zypper:
name: /tmp/fancy-software.rpm
state: present
state: present
Original file line number Diff line number Diff line change
Expand Up @@ -22,43 +22,43 @@
name: sudo
state: latest
update_only: false

- name: Install nmap
community.general.zypper:
name: nmap
state: latest

- name: Install package without using cache
community.general.apk:
name: foo
state: latest
no_cache: true

- name: Install apache httpd
ansible.builtin.apt:
name: apache2
state: latest

- name: Update Gemfile in another directory
community.general.bundler:
state: latest
chdir: ~/rails_project

- name: Install a modularity appstream with defined profile
ansible.builtin.dnf:
name: '@postgresql/client'
name: "@postgresql/client"
state: latest

- name: Install rake
community.general.gem:
name: rake
state: latest

- name: Install formula foo with 'brew' from cask
community.general.homebrew:
name: homebrew/cask/foo
state: latest

- name: Install Green Balls plugin
community.general.jenkins_plugin:
name: greenballs
Expand All @@ -67,83 +67,83 @@
username: user_jenkins
password: userpass_jenkins
register: result

- name: Install packages based on package.json
community.general.npm:
path: /app/location
state: latest

- name: Install nmap
community.general.openbsd_pkg:
name: nmap
state: latest

- name: Install ntpdate
ansible.builtin.package:
name: ntpdate
state: latest

- name: Install package bar from file
community.general.pacman:
name: ~/bar-1.0-1-any.pkg.tar.xz
state: latest

- name: Install finger daemon
community.general.pkg5:
name: service/network/finger
state: latest

- name: Install several packages
community.general.pkgutil:
name:
- CSWsudo
- CSWtop
- CSWsudo
- CSWtop
state: latest

- name: Install package foo
community.general.portage:
package: foo
state: latest

- name: Make sure that it is the most updated package
community.general.slackpkg:
name: foo
state: latest

- name: Make sure spell foo is installed
community.general.sorcery:
spell: foo
state: latest

- name: Install package unzip
community.general.swdepot:
name: unzip
state: latest
depot: 'repository:/path'
depot: "repository:/path"

- name: Install multiple packages
win_chocolatey:
name:
- procexp
- putty
- windirstat
- procexp
- putty
- windirstat
state: latest

- name: Install "imagemin" node.js package globally.
community.general.yarn:
name: imagemin
global: true
state: latest

- name: Install a list of packages (suitable replacement for 2.11 loop deprecation warning)
ansible.builtin.yum:
name:
- nginx
- postgresql
- postgresql-server
state: latest

- name: Install local rpm file
community.general.zypper:
name: /tmp/fancy-software.rpm
state: latest
state: latest
Loading

0 comments on commit 09fc8c4

Please sign in to comment.