Skip to content

Commit

Permalink
prettier troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbazhenoff committed Mar 23, 2024
1 parent f86dcc2 commit b286640
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 13 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/mega_linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,16 @@ jobs:
fetch-depth: 0

- name: MegaLinter
uses: oxsecurity/megalinter@latest # kics-scan ignore-line
# kics-scan ignore-line
uses: oxsecurity/megalinter@latest
id: ml
env:
VALIDATE_ALL_CODEBASE: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Archive production artifacts
uses: actions/upload-artifact@v4 # kics-scan ignore-line
# kics-scan ignore-line
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: MegaLinter reports
Expand Down Expand Up @@ -81,7 +83,8 @@ jobs:
# Create pull request if applicable
# (for now works only on PR from the same repository, not from forks)
- name: Create Pull Request with applied fixes
uses: peter-evans/create-pull-request@v6 # kics-scan ignore-line
# kics-scan ignore-line
uses: peter-evans/create-pull-request@v6
id: cpr
if: env.APPLY_FIXES_IF_PR == 'true'
with:
Expand All @@ -103,7 +106,8 @@ jobs:
run: sudo chown -Rc $UID .git/

- name: Commit and push applied linter fixes
uses: stefanzweifel/git-auto-commit-action@latest # kics-scan ignore-line
# kics-scan ignore-line
uses: stefanzweifel/git-auto-commit-action@latest
if: env.APPLY_FIXES_IF_COMMIT == 'true'
with:
branch: >-
Expand Down
1 change: 1 addition & 0 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
YAML_YAMLLINT_CONFIG_FILE: .yamllint
YAML_YAMLLINT_FILTER_REGEX_EXCLUDE: server_packages_redhat.yml
DISABLE_LINTERS:
- SPELL_CSPELL
3 changes: 2 additions & 1 deletion roles/bareos/tasks/pkg_management/install_dnf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
- name: "install dnf | Install packages" # noqa package-latest
ansible.builtin.dnf:
name: "{{ item }}"
state: latest # kics-scan ignore-line
# kics-scan ignore-line
state: latest
update_cache: true
register: install_yum_results
until: install_yum_results is succeeded
Expand Down
3 changes: 2 additions & 1 deletion roles/bareos/tasks/pkg_management/install_yum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
- name: "install yum | Install packages" # noqa package-latest
ansible.builtin.yum:
name: "{{ item }}"
state: latest # kics-scan ignore-line
# kics-scan ignore-line
state: latest
update_cache: true
register: install_yum_results
until: install_yum_results is succeeded
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
postgresql_version: 16
install_pgadmin: true
pgadmin_email: admin@domain.com
pgadmin_password: my_pgadmin_password # kics-scan ignore-line
# kics-scan ignore-line
pgadmin_password: my_pgadmin_password
postgresql_conf:
port: 5432
max_connections: 1000
Expand Down
3 changes: 2 additions & 1 deletion roles/postgresql/molecule/default/side_effect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
role_subject: users
postgresql_users:
- name: test
password: my_password # kics-scan ignore-line
# kics-scan ignore-line
password: my_password

- name: "default >>> side effect | Include postgresql role to create database"
ansible.builtin.include_role:
Expand Down
3 changes: 2 additions & 1 deletion roles/postgresql/tasks/pkg_management/install_apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
- name: "install apk | Install packages"
community.general.apk:
name: "{{ item.package }}"
state: latest # kics-scan ignore-line
# kics-scan ignore-line
state: latest
update_cache: true
register: install_results
until: install_results is succeeded
Expand Down
3 changes: 2 additions & 1 deletion roles/postgresql/tasks/pkg_management/install_apt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
- name: "install apt | Install packages" # noqa package-latest
ansible.builtin.apt:
name: "{{ item.package }}"
state: latest # kics-scan ignore-line
# kics-scan ignore-line
state: latest
update_cache: true
register: install_results
until: install_results is succeeded
Expand Down
3 changes: 2 additions & 1 deletion roles/postgresql/tasks/pkg_management/install_dnf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
- name: "install dnf | Install packages" # noqa package-latest
ansible.builtin.dnf:
name: "{{ item.package }}"
state: latest # kics-scan ignore-line
# kics-scan ignore-line
state: latest
update_cache: true
disable_gpg_check: "{{ item.disable_gpg_check | default(false) }}"
register: install_results
Expand Down
3 changes: 2 additions & 1 deletion roles/postgresql/tasks/pkg_management/install_yum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
- name: "install yum | Install packages" # noqa package-latest
ansible.builtin.yum:
name: "{{ item.package }}"
state: latest # kics-scan ignore-line
# kics-scan ignore-line
state: latest
update_cache: true
disablerepo: "{{ item.disable_repo | default(omit) }}"
enablerepo: "{{ item.enable_repo | default(omit) }}"
Expand Down
3 changes: 2 additions & 1 deletion roles/postgresql/tasks/server_packages_redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
- name: "server packages redhat | Install repo package to check versioned postgresql package is available"
ansible.builtin.dnf:
name: "{{ postgresql_packages[1].package }}"
state: latest # noqa package-latest # kics-scan ignore-line
# kics-scan ignore-line
state: latest # noqa package-latest
update_cache: true
disable_gpg_check: "{{ postgresql_packages[1].disable_gpg_check | default(false) }}"
ignore_errors: true
Expand Down

0 comments on commit b286640

Please sign in to comment.