From 45ad8c60370502f9eb858eb41da07bc7af8bc760 Mon Sep 17 00:00:00 2001 From: Matt Schwager Date: Tue, 15 Oct 2024 10:09:50 -0400 Subject: [PATCH] Use single quotes for strings to avoid escaping --- yaml/ansible/apt-key-unencrypted-url.yaml | 2 +- yaml/ansible/apt-unencrypted-url.yaml | 2 +- yaml/ansible/dnf-unencrypted-url.yaml | 2 +- yaml/ansible/get-url-unencrypted-url.yaml | 2 +- yaml/ansible/rpm-key-unencrypted-url.yaml | 2 +- yaml/ansible/unarchive-unencrypted-url.yaml | 2 +- yaml/ansible/yum-unencrypted-url.yaml | 2 +- yaml/ansible/zypper-repository-unencrypted-url.yaml | 2 +- yaml/ansible/zypper-unencrypted-url.yaml | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/yaml/ansible/apt-key-unencrypted-url.yaml b/yaml/ansible/apt-key-unencrypted-url.yaml index c23e66b..d076205 100644 --- a/yaml/ansible/apt-key-unencrypted-url.yaml +++ b/yaml/ansible/apt-key-unencrypted-url.yaml @@ -29,4 +29,4 @@ rules: - pattern: url - metavariable-regex: metavariable: $VALUE - regex: "(?i)^(http|ftp):\/\/.*" + regex: '(?i)^(http|ftp)://.*' diff --git a/yaml/ansible/apt-unencrypted-url.yaml b/yaml/ansible/apt-unencrypted-url.yaml index b5024bf..f1668ec 100644 --- a/yaml/ansible/apt-unencrypted-url.yaml +++ b/yaml/ansible/apt-unencrypted-url.yaml @@ -29,4 +29,4 @@ rules: - pattern: deb - metavariable-regex: metavariable: $VALUE - regex: "(?i)^(http|ftp):\/\/.*" + regex: '(?i)^(http|ftp)://.*' diff --git a/yaml/ansible/dnf-unencrypted-url.yaml b/yaml/ansible/dnf-unencrypted-url.yaml index 63a548f..09ef37a 100644 --- a/yaml/ansible/dnf-unencrypted-url.yaml +++ b/yaml/ansible/dnf-unencrypted-url.yaml @@ -33,4 +33,4 @@ rules: - pattern: pkg - metavariable-regex: metavariable: $VALUE - regex: "(?i)^(http|ftp):\/\/.*" + regex: '(?i)^(http|ftp)://.*' diff --git a/yaml/ansible/get-url-unencrypted-url.yaml b/yaml/ansible/get-url-unencrypted-url.yaml index d7542f1..16d258b 100644 --- a/yaml/ansible/get-url-unencrypted-url.yaml +++ b/yaml/ansible/get-url-unencrypted-url.yaml @@ -39,4 +39,4 @@ rules: - pattern: url - metavariable-regex: metavariable: $VALUE - regex: "(?i)^(http|ftp):\/\/.*" + regex: '(?i)^(http|ftp)://.*' diff --git a/yaml/ansible/rpm-key-unencrypted-url.yaml b/yaml/ansible/rpm-key-unencrypted-url.yaml index 7465ae0..0d25c9f 100644 --- a/yaml/ansible/rpm-key-unencrypted-url.yaml +++ b/yaml/ansible/rpm-key-unencrypted-url.yaml @@ -29,4 +29,4 @@ rules: - pattern: key - metavariable-regex: metavariable: $VALUE - regex: "(?i)^(http|ftp):\/\/.*" + regex: '(?i)^(http|ftp)://.*' diff --git a/yaml/ansible/unarchive-unencrypted-url.yaml b/yaml/ansible/unarchive-unencrypted-url.yaml index 64e683d..4e05e5c 100644 --- a/yaml/ansible/unarchive-unencrypted-url.yaml +++ b/yaml/ansible/unarchive-unencrypted-url.yaml @@ -29,4 +29,4 @@ rules: - pattern: src - metavariable-regex: metavariable: $VALUE - regex: "(?i)^(http|ftp):\/\/.*" + regex: '(?i)^(http|ftp)://.*' diff --git a/yaml/ansible/yum-unencrypted-url.yaml b/yaml/ansible/yum-unencrypted-url.yaml index 8eded10..fe47e43 100644 --- a/yaml/ansible/yum-unencrypted-url.yaml +++ b/yaml/ansible/yum-unencrypted-url.yaml @@ -30,4 +30,4 @@ rules: - pattern: pkg - metavariable-regex: metavariable: $VALUE - regex: "(?i)^(http|ftp):\/\/.*" + regex: '(?i)^(http|ftp)://.*' diff --git a/yaml/ansible/zypper-repository-unencrypted-url.yaml b/yaml/ansible/zypper-repository-unencrypted-url.yaml index 8c69100..e338912 100644 --- a/yaml/ansible/zypper-repository-unencrypted-url.yaml +++ b/yaml/ansible/zypper-repository-unencrypted-url.yaml @@ -29,4 +29,4 @@ rules: - pattern: community.general.zypper_repository - metavariable-regex: metavariable: $VALUE - regex: "(?i)^(http|ftp):\/\/.*" + regex: '(?i)^(http|ftp)://.*' diff --git a/yaml/ansible/zypper-unencrypted-url.yaml b/yaml/ansible/zypper-unencrypted-url.yaml index e99dcf3..915d455 100644 --- a/yaml/ansible/zypper-unencrypted-url.yaml +++ b/yaml/ansible/zypper-unencrypted-url.yaml @@ -30,4 +30,4 @@ rules: - pattern: community.general.zypper - metavariable-regex: metavariable: $VALUE - regex: "(?i)^(http|ftp):\/\/.*" + regex: '(?i)^(http|ftp)://.*'