Skip to content

Commit

Permalink
fix bundle packaging script
Browse files Browse the repository at this point in the history
  • Loading branch information
simar7 committed Dec 6, 2023
1 parent 8242374 commit b46beb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ if [ -n "$GITHUB_ENV" ]; then
echo "MAJOR_VERSION=$MAJOR_VERSION" >> $GITHUB_ENV
fi
mkdir -p bundle/policies
rsync -avr --exclude=README.md --exclude="*_test.rego" --exclude="*.go" --exclude=compliance --exclude=test --exclude=advanced lib/ checks/ bundle/policies/
rsync -avr --exclude=README.md --exclude="*_test.rego" --exclude="*.go" --exclude=compliance --exclude=test --exclude=advanced checks/ bundle/policies/
mkdir -p bundle/policies/{kubernetes,docker}/lib
rsync -avr --exclude="*_test.rego" --exclude="*.go" lib/kubernetes/* bundle/policies/kubernetes/lib
rsync -avr --exclude="*_test.rego" --exclude="*.go" lib/docker/* bundle/policies/docker/lib
cp checks/.manifest bundle/
rm bundle/policies/.manifest
sed -i -e "s/\[GITHUB_SHA\]/${RELEASE_VERSION}/" bundle/.manifest
Expand Down
1 change: 1 addition & 0 deletions scripts/verify-bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ func LoadBundle() {
fmt.Println(debugLogsForContainer(ctx, trivyC))
}

// TODO: Verify by using bundle to scan
func main() {
LoadBundle()
}

0 comments on commit b46beb4

Please sign in to comment.