Ver Fonte

fix(action): update Netfilter configuration to append NF_TABLES, NFT_REJECT, and NFT_LOG options

Co-authored-by: Copilot <copilot@github.com>
TheWildJames há 4 meses atrás
pai
commit
703e6fee14
1 ficheiros alterados com 3 adições e 5 exclusões
  1. 3 5
      .github/actions/networking/action.yml

+ 3 - 5
.github/actions/networking/action.yml

@@ -38,11 +38,9 @@ runs:
         if [ "${{ inputs.kernel_version }}" = "5.10" ]; then
           echo "# CONFIG_NF_TABLES is not set" >> "${{ github.workspace }}/wild_gki.fragment"
         else
-          cat >> "${{ github.workspace }}/wild_gki.fragment" << 'EOF'
-          CONFIG_NF_TABLES=y
-          CONFIG_NFT_REJECT=y
-          CONFIG_NFT_LOG=y
-          EOF
+          echo "CONFIG_NF_TABLES=y" >> "${{ github.workspace }}/wild_gki.fragment"
+          echo "CONFIG_NFT_REJECT=y" >> "${{ github.workspace }}/wild_gki.fragment"
+          echo "CONFIG_NFT_LOG=y" >> "${{ github.workspace }}/wild_gki.fragment"
         fi
 
     - name: Apply IP Tables Extensions