I created a RHEL7 VM and a OS Policy assignment with a simple config. Here is the YAML I'm using to validate. Below is the same shell script used in yaml for reference:
export num=$(stat --format '%a' /etc/crontab); if [[ "$num" -eq 644 ]]; then exit 100; else exit 101; fi
Since I get the output 644 when I SSH and manually try the command, I'm checking the same with this script and after validating, it should give compliant state as result but it's giving non-compliant.
PS: I was getting correct output i.e. compliant 3 days ago but nothing is working now. It seems google is making changes as the service still in Preview.