Part 2 - Artifacts Attestation for Builds in Github ActionsArtifact attestations help boost your build's supply chain security by showing where and how your software was created. In Github Actions we can acheive this using actions/attest-build-provenance First add permission to your workflows / re-usable wo...Nov 3, 2023 ยท 2 min readtechswitch.in
Part 1 - Cache Docker, Python, Java(Maven), Node(npm), Go Modules in Github Actions"Caching helps workflows run faster". The cache is created during the first run and is used for later runs, saving time and keeping the workflow efficient by speeding up the workflow runs. Cache Maven Maven usually takes a longer time to build the de...May 11, 2023 ยท 4 min readtechswitch.in
Secure Password Storage in Python: A Guide to Keyringimport os import keyring def set_password(service_name, username, password): try: # Set the password in the keyring keyring.set_password(service_name, username, password) print("Password set for service '{}' and username...Oct 10, 2022 ยท 1 min readtechswitch.in
Agile foundation Quiz AnswersDisclaimer: Please use these responses as a last resort if you tried the questions several times and still couldn't pass it. 1. In the penny game exercise, why do you think it takes longer for one person to flip five batches of two pennies then one b...Jun 13, 2021 ยท 4 min readtechswitch.in
Beginner's Python: Unveiling Quirky and Useful Functions You Didn't know Existed1. Function to make a noun (adjective) from a verb or an adverb from a noun (adjective) def verbing(s): returns iflen(s) < 3 elses + ('ing', 'ly')['ing' ins] >>> verbing('help') helping >>> verbing('helping') helpingly 2. use a bare โ*โ asterisk...Oct 14, 2019 ยท 2 min readtechswitch.in