File: check_for_tokens.sh

package info (click to toggle)
golang-github-scaleway-scaleway-sdk-go 1.0.0~beta12-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,000 kB
  • sloc: javascript: 160; sh: 70; makefile: 3
file content (14 lines) | stat: -rwxr-xr-x 249 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

files=$(find . -type f -print | grep testdata);

for file in $files
do
    echo "checking $file";
    if grep -i --quiet "x-auth-token" $file
    then
        echo "found x-auth-token in file $file";
        exit 1;
    fi
done
exit 0;