Add helper for adding a smart card action
(cherry picked from commit 06cea08299744dfce5a46552c34516cd31606c73)