Female Nazi Spy Seduction/Execution

I caught part of a black and white war movie as a kid and one scene’s stuck with me over the years. A female spy seduces/is seduced by a Nazi officer and the next morning she is executed by firing squad. I realize that could be any number of movies, but I figured it was worth a shot. I’d guess the movie was from the 40s-50s. Thanks in advance!

Got something to say?