conftest-yaml/run-conftest.rb
# Attempt to parse all the yaml/yml files in a PR, aside from those with
# 'secret' in the filename.  Files with 'secret' in the name are very often
# git-crypted, and so would cause this action to fail.
Attempt to parse all the yaml/yml files in a PR, aside from those with
'secret' in the filename.  Files with 'secret' in the name are very often
git-crypted, and so would cause this action to fail.
Attempt to parse all the yaml / yml files in a PR aside from those with ' secret ' in the filename . Files with ' secret ' in the name are very often git - crypted and so would cause this action to fail .
def yaml_files_in_pr(gh)
  gh.files_in_pr
    .grep(/\.(yaml|yml)$/)
    .filter { |f| FileTest.exists?(f) }
    .reject { |f| f =~ /secret/ }
end
def yaml_files_in_pr ( gh ) gh . files_in_pr . grep ( / \. (yaml|yml)$ / ) . filter { | f | FileTest . exists? ( f ) } . reject { | f | f =~ / secret / } end
Attempt to parse all the yaml/yml files in a PR, aside from those with
'secret' in the filename.
Attempt to parse all the yaml / yml files in a PR aside from those with ' secret ' in the filename .
gh