| 669 | } |
| 670 | |
| 671 | func (s *composeService) checkForBindMount(project *types.Project) map[string][]types.ServiceVolumeConfig { |
| 672 | allFindings := map[string][]types.ServiceVolumeConfig{} |
| 673 | for serviceName, config := range project.Services { |
| 674 | bindMounts := []types.ServiceVolumeConfig{} |
| 675 | for _, volume := range config.Volumes { |
| 676 | if volume.Type == types.VolumeTypeBind { |
| 677 | bindMounts = append(bindMounts, volume) |
| 678 | } |
| 679 | } |
| 680 | if len(bindMounts) > 0 { |
| 681 | allFindings[serviceName] = bindMounts |
| 682 | } |
| 683 | } |
| 684 | return allFindings |
| 685 | } |
| 686 | |
| 687 | func (s *composeService) checkForSensitiveData(ctx context.Context, project *types.Project) ([]secrets.DetectedSecret, error) { |
| 688 | var allFindings []secrets.DetectedSecret |