{"id":7445,"date":"2023-10-13T16:07:17","date_gmt":"2023-10-13T10:37:17","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=7445"},"modified":"2023-10-13T16:08:59","modified_gmt":"2023-10-13T10:38:59","slug":"how-to-add-repository-secrets-in-github","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-add-repository-secrets-in-github\/","title":{"rendered":"How to add repository secrets in GitHub"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Introduction<br>GitHub is an online software development platform. It&#8217;s used for storing, tracking, and collaborating on software projects. It makes it easy for developers to share code files and collaborate with fellow developers on open-source projects<br><br>Prerequisites<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>A GitHub account and its access<\/li>\n\n\n\n<li>Repository access<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Implementation<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 1: Access GitHub.com on the browser and&nbsp; navigate to the main page of the repository<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/oX9lCBirOVSPmLrs2QBJzItcdASpPQfHTJSdF4Mtz0eXoznblFlQ_YBKGJjYGvQ0-mFJ3D0MXg_QpmtJ1wHSVfQyeULkrhXlSeCLbgAf9SnrkUaOPAvPEAZB1kUtmXts49nFp8114uloBFcXzsbq0ac\" alt=\"\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 2: Click on the Settings tab<img decoding=\"async\" width=\"624\" height=\"65\" src=\"https:\/\/lh7-us.googleusercontent.com\/yhsb_z78wr9Prz-GrRFGsPTC2XwPUQZRIJnm0ZyPs-B4gmymM6PHEYvFfjnWBAu5wMlK2uC7quLi1Rq1tE1pfzbZSmNrSFrhnfY5p8wBKRt1LH2bGbXp_Ku3-75FhqCZwh-SIlm7jPdxUh1Xqn9FLM8\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 3 In the &#8220;Security&#8221; section, select&nbsp; Secrets and Variables, then click on&nbsp; Actions<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/L-VoHBkxcBeV3KSKA3X0OsUR-xS09BAxJ9kVWpjIOEI_kUjrVvS70Wnp_a0X6NX_5QZWFCNy0R-zHOtjjo1huy6Fr35bQBfKllhGgZg1k1mYg6IGfKwRx_fPmbPfvafKNVxnqR7yzIDJkkN1HCDYwuE\" alt=\"\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 4: Click on &#8220;New repository secret<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/lmNs0KhaIv8pNuwYJ6z3iqW4_hLhaQ8Hj7nm8tXnf4o_ba1qgd1dJM54_FlVfX90LXuMNtMpvwdHIaXSh4tudEiw2TmLrZOHhcMNHmuM19gDsqW-k65k1aL2KYBUPpJ72y4F0WtozjlDyHIu5rtYxJo\" alt=\"\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 5: Mention the secret name in the &#8220;Name&#8221; section and the secret value in the &#8220;Secret&#8221; section then click on Add secret<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/w3U-Hi6xMHL3fyXwOsqFrN8XEOp6UbjDblt5sPkykN8o8qrwR5b1OCl2WjY90AFio7kZbKzc_am3D500OU0pUBV85DjhqWlvK-a0kR3wTIBh8rgUgIKKSb_nCceGkw1voAaGam7r7prGZ0cPLqDs3Oo\" alt=\"\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 6: Once the repository secret has been added successfully, we can find the details in the repository secret section&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/yRHcgDii7dV8NqxgojD7CvoZImyfIsZVIOAZ1Bki6HBYLTdVrtBbkejtGXFjaV1Cwbm92QRt7N5gjDQcvEgNiq2salBs7madlacS9ccE-zf4waVyWntI7j9qLfbPPgK-svAMdb3nve2vTZSZuk1KRS0\" alt=\"\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>IntroductionGitHub is an online software development platform. It&#8217;s used for storing, tracking, and collaborating on software projects. It makes it [&hellip;]<\/p>\n","protected":false},"author":495,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1020],"tags":[598,982],"class_list":["post-7445","post","type-post","status-publish","format-standard","hentry","category-containers-kubernetes","tag-github","tag-repository-secrets","psol-cat-containers-kubernetes"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1W5","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/495"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=7445"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7445\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=7445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=7445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=7445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}