use secrets instead of deprecated secret

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>