Xray will only scan artifacts in a repository or build that has already been added to the Indexed Resources. When a repository or build is added to the Indexed Resources, only future versions of artifacts or builds will be indexed and subsequently scanned by Xray.
Any existing artifacts or build versions that predate the addition of the repository/build to the Indexed Resources will not be indexed or scanned. Below are the steps to begin scanning pre-existing artifacts and build versions in an indexed repository or build.