{"id":3499,"date":"2026-07-16T10:00:46","date_gmt":"2026-07-16T00:30:46","guid":{"rendered":"https:\/\/softasia.jp\/blog\/?p=3499"},"modified":"2026-06-03T22:07:08","modified_gmt":"2026-06-03T12:37:08","slug":"github%e3%81%ab%e6%a9%9f%e5%af%86%e6%83%85%e5%a0%b1%e3%82%92push%e3%81%97%e3%81%a6%e3%81%97%e3%81%be%e3%81%a3%e3%81%9f%ef%bc%81%e5%af%be%e5%87%a6%e6%b3%95%e3%81%a8%e5%86%8d%e7%99%ba%e9%98%b2%e6%ad%a2","status":"publish","type":"post","link":"https:\/\/softasia.jp\/blog\/offshore\/3499\/","title":{"rendered":"GitHub\u306b\u6a5f\u5bc6\u60c5\u5831\u3092push\u3057\u3066\u3057\u307e\u3063\u305f\uff01\u5bfe\u51e6\u6cd5\u3068\u518d\u767a\u9632\u6b62\u5bfe\u7b56\u306b\u3064\u3044\u3066"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"size-full wp-image-3501 aligncenter\" src=\"https:\/\/softasia.jp\/blog\/wp-content\/uploads\/2026\/05\/SOFT_ASIA_\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1-1000-x-1000-px-7.png\" alt=\"\" width=\"1000\" height=\"1000\" srcset=\"https:\/\/softasia.jp\/blog\/wp-content\/uploads\/2026\/05\/SOFT_ASIA_\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1-1000-x-1000-px-7.png 1000w, https:\/\/softasia.jp\/blog\/wp-content\/uploads\/2026\/05\/SOFT_ASIA_\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1-1000-x-1000-px-7-300x300.png 300w, https:\/\/softasia.jp\/blog\/wp-content\/uploads\/2026\/05\/SOFT_ASIA_\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1-1000-x-1000-px-7-150x150.png 150w, https:\/\/softasia.jp\/blog\/wp-content\/uploads\/2026\/05\/SOFT_ASIA_\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1-1000-x-1000-px-7-768x768.png 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3093\u3067\u3044\u308b\u3068\u3001\u8ab0\u3082\u304c\u4e00\u5ea6\u306f\u30d2\u30e4\u30ea\u3068\u3059\u308b\u5834\u9762\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u3072\u3068\u3064\u304c<\/span><span style=\"font-weight: 400;\">\u300c<span style=\"text-decoration: underline;\">GitHub\u306b\u6a5f\u5bc6\u60c5\u5831\u3092\u8aa4\u3063\u3066push\u3057\u3066\u3057\u307e\u3063\u305f<\/span>\u300d\u3068\u3044\u3046\u5931\u6557\u3067\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">AWS\u306e\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3001API\u30ad\u30fc\u3092\u8aa4\u3063\u3066GitHub\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306bpush\u3057\u3066\u3057\u307e\u3063\u305f\u3068\u304d\u3001\u300c<span style=\"text-decoration: underline;\">\u3059\u3050\u306b\u524a\u9664\u3059\u308c\u3070\u5927\u4e08\u592b\uff1f<\/span>\u300d\u300c<span style=\"text-decoration: underline;\">\u3082\u3046\u8ab0\u304b\u306b\u898b\u3089\u308c\u305f\uff1f<\/span>\u300d\u3068\u3044\u3046\u4e0d\u5b89\u304c\u4e00\u6c17\u306b\u62bc\u3057\u5bc4\u305b\u3066\u304d\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u5b9f\u306f\u3053\u306e\u30df\u30b9\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u521d\u5fc3\u8005\u3060\u3051\u3067\u306a\u304f\u3001\u7d4c\u9a13\u8c4a\u5bcc\u306a\u30a8\u30f3\u30b8\u30cb\u30a2\u3067\u3082\u8d77\u3053\u308a\u3048\u308b\u51fa\u6765\u4e8b\u3067\u3059\u3002<span style=\"text-decoration: underline;\">\u5927\u5207\u306a\u306e\u306f\u3001\u7126\u3089\u305a\u6b63\u3057\u3044\u9806\u5e8f\u3067\u5bfe\u5fdc\u3059\u308b\u3053\u3068\u3068\u3001\u4e8c\u5ea6\u3068\u540c\u3058\u30df\u30b9\u3092\u3057\u306a\u3044\u305f\u3081\u306e\u4e88\u9632\u7b56\u3092\u8eab\u306b\u3064\u3051\u308b\u3053\u3068\u3067\u3059<\/span>\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u305d\u3093\u306a\u72b6\u6cc1\u306b\u9665\u3063\u3066\u3057\u307e\u3063\u305f\u3068\u304d\u306e\u51b7\u9759\u306a\u521d\u52d5\u5bfe\u5fdc\u3068\u3001\u5177\u4f53\u7684\u306a\u4e88\u9632\u7b56\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u521d\u5fc3\u8005\u306e\u65b9\u3067\u3082\u5b9f\u8df5\u3067\u304d\u308b\u5185\u5bb9\u3067\u3059\u306e\u3067\u3001\u305c\u3072\u6700\u5f8c\u307e\u3067\u8aad\u3093\u3067\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">\u76ee\u6b21<\/p><ul class=\"toc_list\"><li><a href=\"#GitHubpush\"><span class=\"toc_number toc_depth_1\">1<\/span> \u306a\u305c\u6a5f\u5bc6\u60c5\u5831\u3092GitHub\u306bpush\u3057\u3066\u3057\u307e\u3046\u306e\u304b<\/a><ul><li><a href=\"#push\"><span class=\"toc_number toc_depth_2\">1.1<\/span> \u3088\u304f\u3042\u308b\u6a5f\u5bc6\u60c5\u5831push\u4e8b\u6545\u306e\u539f\u56e0<\/a><\/li><li><a href=\"#i\"><span class=\"toc_number toc_depth_2\">1.2<\/span> \u524a\u9664\u3059\u308c\u3070\u5927\u4e08\u592b\u306f\u5927\u304d\u306a\u8aa4\u89e3<\/a><\/li><\/ul><\/li><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_1\">2<\/span> \u30a4\u30f3\u30b7\u30c7\u30f3\u30c8\u304c\u767a\u751f\u3057\u305f\u3068\u304d\u306b\u307e\u305a\u4f55\u3092\u3059\u3079\u304d\u304b<\/a><ul><li><a href=\"#i-3\"><span class=\"toc_number toc_depth_2\">2.1<\/span> \u8a72\u5f53\u306e\u30ad\u30fc\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u3059\u3050\u306b\u7121\u52b9\u5316\u3059\u308b<\/a><\/li><li><a href=\"#Private\"><span class=\"toc_number toc_depth_2\">2.2<\/span> \u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u975e\u516c\u958b\uff08Private\uff09\u306b\u5909\u66f4\u3059\u308b<\/a><\/li><li><a href=\"#i-4\"><span class=\"toc_number toc_depth_2\">2.3<\/span> \u6a5f\u5bc6\u60c5\u5831\u304c\u3069\u306e\u30b3\u30df\u30c3\u30c8\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b<\/a><\/li><li><a href=\"#Git\"><span class=\"toc_number toc_depth_2\">2.4<\/span> Git\u306e\u5c65\u6b74\u304b\u3089\u6a5f\u5bc6\u60c5\u5831\u3092\u5b8c\u5168\u524a\u9664\u3059\u308b<\/a><\/li><li><a href=\"#force_push\"><span class=\"toc_number toc_depth_2\">2.5<\/span> \u4fee\u6b63\u3057\u305f\u5185\u5bb9\u3092force push\u3067\u53cd\u6620\u3059\u308b<\/a><\/li><\/ul><\/li><li><a href=\"#5\"><span class=\"toc_number toc_depth_1\">3<\/span> \u4e8c\u5ea6\u3068\u7e70\u308a\u8fd4\u3055\u306a\u3044\u305f\u3081\u306e\u4e88\u9632\u7b565\u9078<\/a><ul><li><a href=\"#gitignore\"><span class=\"toc_number toc_depth_2\">3.1<\/span> .gitignore\u3092\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u958b\u59cb\u6642\u306b\u8a2d\u5b9a\u3059\u308b<\/a><\/li><li><a href=\"#i-5\"><span class=\"toc_number toc_depth_2\">3.2<\/span> \u74b0\u5883\u5909\u6570\u3092\u4f7f\u3063\u3066\u6a5f\u5bc6\u60c5\u5831\u3092\u7ba1\u7406\u3059\u308b<\/a><\/li><li><a href=\"#i-6\"><span class=\"toc_number toc_depth_2\">3.3<\/span> \u30b3\u30df\u30c3\u30c8\u524d\u306b\u81ea\u52d5\u30c1\u30a7\u30c3\u30af\u3059\u308b\u30c4\u30fc\u30eb\u3092\u5c0e\u5165\u3059\u308b<\/a><\/li><li><a href=\"#i-7\"><span class=\"toc_number toc_depth_2\">3.4<\/span> \u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u7ba1\u7406\u30b5\u30fc\u30d3\u30b9\u3092\u7a4d\u6975\u6d3b\u7528\u3059\u308b<\/a><\/li><li><a href=\"#i-8\"><span class=\"toc_number toc_depth_2\">3.5<\/span> \u5b9a\u671f\u7684\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b9\u30ad\u30e3\u30f3\u3092\u7fd2\u6163\u306b\u3059\u308b<\/a><\/li><\/ul><\/li><li><a href=\"#i-9\"><span class=\"toc_number toc_depth_1\">4<\/span> \u307e\u3068\u3081<\/a><\/li><\/ul><\/div>\n<h2><span id=\"GitHubpush\"><span style=\"font-weight: 400;\">\u306a\u305c\u6a5f\u5bc6\u60c5\u5831\u3092GitHub\u306bpush\u3057\u3066\u3057\u307e\u3046\u306e\u304b<\/span><\/span><\/h2>\n<p><img loading=\"lazy\" class=\"size-full wp-image-3507 aligncenter\" src=\"https:\/\/softasia.jp\/blog\/wp-content\/uploads\/2026\/05\/SOFT-_ASIA-34.png\" alt=\"\" width=\"640\" height=\"427\" srcset=\"https:\/\/softasia.jp\/blog\/wp-content\/uploads\/2026\/05\/SOFT-_ASIA-34.png 640w, https:\/\/softasia.jp\/blog\/wp-content\/uploads\/2026\/05\/SOFT-_ASIA-34-300x200.png 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u307e\u305a\u3001\u306a\u305c\u3053\u306e\u3088\u3046\u306a\u30df\u30b9\u304c\u8d77\u304d\u308b\u306e\u304b\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u304c\u5927\u5207\u3067\u3059\u3002\u539f\u56e0\u3092\u77e5\u308b\u3053\u3068\u3067\u3001\u540c\u3058\u30df\u30b9\u3092\u7e70\u308a\u8fd4\u3055\u306a\u3044\u5bfe\u7b56\u304c\u7acb\u3066\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span id=\"push\"><span style=\"font-weight: 400;\">\u3088\u304f\u3042\u308b\u6a5f\u5bc6\u60c5\u5831push\u4e8b\u6545\u306e\u539f\u56e0<\/span><\/span><\/h3>\n<p><b>\u958b\u767a\u4e2d\u306b\u76f4\u63a5\u30b3\u30fc\u30c9\u3078\u66f8\u3044\u3066\u3057\u307e\u3046<\/b><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">\u300c<span style=\"text-decoration: underline;\">\u5f8c\u3067\u3061\u3083\u3093\u3068\u3057\u305f\u65b9\u6cd5\u306b\u5909\u3048\u3088\u3046<\/span>\u300d\u3068\u601d\u3044\u306a\u304c\u3089\u3001API\u30ad\u30fc\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u76f4\u63a5\u8a18\u8ff0\u3057\u3066\u3057\u307e\u3046\u30b1\u30fc\u30b9\u3067\u3059\u3002\u5fd9\u3057\u3044\u3068\u304d\u3084\u521d\u5fc3\u8005\u306e\u3046\u3061\u306f\u7279\u306b\u8d77\u3053\u308a\u3084\u3059\u3044\u5931\u6557\u3067\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>.env\u30d5\u30a1\u30a4\u30eb\u3092git\u7ba1\u7406\u306b\u542b\u3081\u3066\u3057\u307e\u3046<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">\u74b0\u5883\u5909\u6570\u3092\u7ba1\u7406\u3059\u308b.env\u30d5\u30a1\u30a4\u30eb\u306f\u4fbf\u5229\u3067\u3059\u304c\u3001.gitignore\u3078\u306e\u8ffd\u52a0\u3092\u5fd8\u308c\u3066\u4e00\u7dd2\u306bpush\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u305d\u306e\u307e\u307e\u30b3\u30df\u30c3\u30c8\u3059\u308b<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">config.json\u3001settings.yml\u3001database.yml\u306a\u3069\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u672c\u756a\u74b0\u5883\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u5165\u3063\u305f\u307e\u307e\u3001\u30b3\u30df\u30c3\u30c8\u3057\u3066\u3057\u307e\u3046\u30b1\u30fc\u30b9\u3067\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30d0\u30c3\u30b0\u51fa\u529b\u304c\u542b\u307e\u308c\u3066\u3044\u308b<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">\u30ed\u30b0\u306b\u6a5f\u5bc6\u60c5\u5831\u304c\u51fa\u529b\u3055\u308c\u3066\u304a\u308a\u3001\u305d\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u8aa4\u3063\u3066\u30b3\u30df\u30c3\u30c8\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u3082\u5c11\u306a\u304f\u3042\u308a\u307e\u305b\u3093\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>\u30b3\u30fc\u30c9\u306e\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3067\u6df7\u5165\u3057\u3066\u3057\u307e\u3046<\/b><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">\u4ed6\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304b\u3089\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3057\u305f\u969b\u306b\u3001\u30c6\u30b9\u30c8\u7528\u306eAPI\u30ad\u30fc\u306a\u3069\u304c\u6df7\u5165\u3057\u3066\u3057\u307e\u3046\u30b1\u30fc\u30b9\u3082\u591a\u304f\u307f\u3089\u308c\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span id=\"i\"><span style=\"font-weight: 400;\">\u524a\u9664\u3059\u308c\u3070\u5927\u4e08\u592b\u306f\u5927\u304d\u306a\u8aa4\u89e3<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">GitHub\u3067\u8a72\u5f53\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u30b3\u30df\u30c3\u30c8\u3092\u3059\u308c\u3070OK\u3060\u3068\u601d\u3063\u3066\u3044\u307e\u305b\u3093\u304b\u3002 \u3053\u308c\u306f\u5927\u304d\u306a\u8aa4\u89e3\u3067\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Git\u306f\u3059\u3079\u3066\u306e\u5909\u66f4\u5c65\u6b74\u3092\u8a18\u9332\u3059\u308b\u4ed5\u7d44\u307f\u306e\u305f\u3081\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u30b3\u30df\u30c3\u30c8\u3092\u3057\u3066\u3082\u904e\u53bb\u306e\u5c65\u6b74\u306b\u306f\u60c5\u5831\u304c\u6b8b\u308a\u7d9a\u3051\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u307e\u305f\u3001GitHub\u306b\u6a5f\u5bc6\u60c5\u5831\u304cpush\u3055\u308c\u305f\u77ac\u9593\u304b\u3089\u3001\u60aa\u610f\u3042\u308bbot\u306b\u3088\u308b\u81ea\u52d5\u30b9\u30ad\u30e3\u30f3\u304c\u52d5\u3044\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u5b9f\u969b\u306b\u3001GitHub\u306b\u516c\u958b\u3055\u308c\u305fAWS\u306e\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u304c\u6570\u79d2\u301c\u6570\u5206\u4ee5\u5185\u306b\u60aa\u7528\u3055\u308c\u305f\u3068\u3044\u3046\u4e8b\u4f8b\u304c\u8907\u6570\u5831\u544a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u300c<span style=\"text-decoration: underline;\">\u6c17\u3065\u3044\u305f\u3089\u3059\u3050\u6d88\u3057\u305f<\/span>\u300d\u3068\u3044\u3046\u884c\u52d5\u3060\u3051\u3067\u306f\u3001\u3059\u3067\u306b\u624b\u9045\u308c\u306b\u306a\u308b\u30b1\u30fc\u30b9\u304c\u3042\u308b\u306e\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<h2><span id=\"i-2\"><span style=\"font-weight: 400;\">\u30a4\u30f3\u30b7\u30c7\u30f3\u30c8\u304c\u767a\u751f\u3057\u305f\u3068\u304d\u306b\u307e\u305a\u4f55\u3092\u3059\u3079\u304d\u304b<\/span><\/span><\/h2>\n<p><img loading=\"lazy\" class=\"size-full wp-image-3505 aligncenter\" src=\"https:\/\/softasia.jp\/blog\/wp-content\/uploads\/2026\/05\/SOFT-_ASIA-33.png\" alt=\"\" width=\"640\" height=\"427\" srcset=\"https:\/\/softasia.jp\/blog\/wp-content\/uploads\/2026\/05\/SOFT-_ASIA-33.png 640w, https:\/\/softasia.jp\/blog\/wp-content\/uploads\/2026\/05\/SOFT-_ASIA-33-300x200.png 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u6a5f\u5bc6\u60c5\u5831\u3092push\u3057\u3066\u3057\u307e\u3063\u305f\u3053\u3068\u306b\u6c17\u3065\u3044\u305f\u3089\u3001\u7126\u3089\u305a\u3001\u7d20\u65e9\u304f\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u5bfe\u5fdc\u3057\u307e\u3057\u3087\u3046\u3002\u5bfe\u5fdc\u306e\u9806\u5e8f\u3092\u9593\u9055\u3048\u308b\u3068\u88ab\u5bb3\u304c\u62e1\u5927\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span id=\"i-3\"><span style=\"font-weight: 400;\">\u8a72\u5f53\u306e\u30ad\u30fc\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u3059\u3050\u306b\u7121\u52b9\u5316\u3059\u308b<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">\u6700\u521d\u306b\u3084\u308b\u3079\u304d\u3053\u3068\u306f\u3001Git\u306e\u5c65\u6b74\u524a\u9664\u3067\u306f\u306a\u304f\u3001\u6f0f\u6d29\u3057\u305f<span style=\"color: #ff0000;\"><strong>\u60c5\u5831\u306e\u7121\u52b9\u5316\uff08revoke\uff09<\/strong><\/span>\u3067\u3059\u3002\u306a\u305c\u306a\u3089\u3001\u3059\u3067\u306b\u8ab0\u304b\u306b\u898b\u3089\u308c\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u3001\u5c65\u6b74\u306e\u524a\u9664\u3088\u308a\u60c5\u5831\u306e\u7121\u52b9\u5316\u306e\u65b9\u304c\u5373\u52b9\u6027\u304c\u3042\u308b\u304b\u3089\u3067\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>\u00a0<\/b><b>AWS\u306e\u30a2\u30af\u30bb\u30b9\u30ad\u30fc<\/b><\/p>\n<p><span style=\"font-weight: 400;\">AWS\u7ba1\u7406\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u30ad\u30fc\u3092\u524a\u9664\u30fb\u7121\u52b9\u5316\u3057\u3001\u65b0\u3057\u3044\u30ad\u30fc\u3092\u767a\u884c\u3059\u308b<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>GitHub Personal Access Token<\/b><\/p>\n<p><span style=\"font-weight: 400;\">GitHub\u306e\u8a2d\u5b9a\u753b\u9762\u304b\u3089\u30c8\u30fc\u30af\u30f3\u3092\u524a\u9664\u3059\u308b<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30d1\u30b9\u30ef\u30fc\u30c9<\/b><\/p>\n<p><span style=\"font-weight: 400;\">\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3057\u3001\u53e4\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u7121\u52b9\u5316\u3059\u308b<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>\u5404\u7a2eAPI\u30ad\u30fc<\/b><\/p>\n<p><span style=\"font-weight: 400;\">\u5404\u30b5\u30fc\u30d3\u30b9\u306e\u7ba1\u7406\u753b\u9762\u3067\u30ad\u30fc\u3092\u518d\u767a\u884c\u3059\u308b<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u3053\u306e\u64cd\u4f5c\u3092\u6700\u512a\u5148\u3067\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<span style=\"text-decoration: underline;\">\u53e4\u3044\u30ad\u30fc\u3092\u7121\u52b9\u5316\u3057\u3066\u3057\u307e\u3048\u3070\u3001\u305f\u3068\u3048\u5c65\u6b74\u306b\u6b8b\u3063\u3066\u3044\u3066\u3082\u60aa\u7528\u3055\u308c\u308b\u30ea\u30b9\u30af\u3092\u5927\u5e45\u306b\u4e0b\u3052\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059<\/span>\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span id=\"Private\"><span style=\"font-weight: 400;\">\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u975e\u516c\u958b\uff08Private\uff09\u306b\u5909\u66f4\u3059\u308b<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">\u6b21\u306b\u3001\u5bfe\u8c61\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4e00\u6642\u7684\u306bPrivate\u306b\u5909\u66f4\u3057\u307e\u3057\u3087\u3046\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">GitHub\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u8a2d\u5b9a\uff08Settings\uff09\u304b\u3089\u300c<span style=\"color: #ff0000;\"><strong>Danger Zone<\/strong><\/span>\u300d\u306b\u3042\u308b\u300c<span style=\"color: #ff0000;\"><strong>Change repository visibility<\/strong><\/span>\u300d\u3067\u975e\u516c\u958b\u306b\u5909\u66f4\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u65b0\u305f\u306b\u60c5\u5831\u304c\u95b2\u89a7\u3055\u308c\u308b\u3053\u3068\u3092\u9632\u3052\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span id=\"i-4\"><span style=\"font-weight: 400;\">\u6a5f\u5bc6\u60c5\u5831\u304c\u3069\u306e\u30b3\u30df\u30c3\u30c8\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001\u3069\u306e\u30b3\u30df\u30c3\u30c8\u306b\u6a5f\u5bc6\u60c5\u5831\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002\u3069\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u3001\u3069\u306e\u30b3\u30df\u30c3\u30c8\u306b\u554f\u984c\u304c\u3042\u308b\u304b\u3092\u628a\u63e1\u3059\u308b\u3053\u3068\u3067\u3001\u6b21\u306e\u5bfe\u51e6\u304c\u6b63\u78ba\u306b\u306a\u308a\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #3366ff;\"><span style=\"font-weight: 400;\"># \u30b3\u30df\u30c3\u30c8\u4e00\u89a7\u3092\u78ba\u8a8d\u3059\u308b<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">git log &#8211;all &#8211;oneline<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"># \u7279\u5b9a\u306e\u30b3\u30df\u30c3\u30c8\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3059\u308b<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">git show &lt;\u30b3\u30df\u30c3\u30c8\u30cf\u30c3\u30b7\u30e5&gt;<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"># \u7279\u5b9a\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u542b\u3080\u30b3\u30df\u30c3\u30c8\u3092\u691c\u7d22\u3059\u308b<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">git log &#8211;all -S &#8220;\u691c\u7d22\u3057\u305f\u3044\u30ad\u30fc\u30ef\u30fc\u30c9&#8221; &#8211;oneline<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span id=\"Git\"><span style=\"font-weight: 400;\">Git\u306e\u5c65\u6b74\u304b\u3089\u6a5f\u5bc6\u60c5\u5831\u3092\u5b8c\u5168\u524a\u9664\u3059\u308b<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">GitHub\u304c\u516c\u5f0f\u306b\u63a8\u5968\u3057\u3066\u3044\u308b\u30c4\u30fc\u30eb\u300c<span style=\"color: #ff0000;\"><strong>git-filter-repo<\/strong><\/span>\u300d\u3092\u4f7f\u3063\u3066\u3001\u5c65\u6b74\u304b\u3089\u6a5f\u5bc6\u60c5\u5831\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u3053\u306e\u30c4\u30fc\u30eb\u306fGit\u306e\u5c65\u6b74\u3092\u5b89\u5168\u304b\u3064\u9ad8\u901f\u306b\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #3366ff;\"><span style=\"font-weight: 400;\"># \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08pip\u3092\u4f7f\u7528\uff09<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">pip install git-filter-repo<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"># \u7279\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5c65\u6b74\u304b\u3089\u5b8c\u5168\u306b\u524a\u9664\u3059\u308b<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">git filter-repo &#8211;invert-paths &#8211;path config\/secrets.env<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"># \u7279\u5b9a\u306e\u6587\u5b57\u5217\uff08API\u30ad\u30fc\u305d\u306e\u3082\u306e\uff09\u3092\u7f6e\u63db\u3059\u308b\u5834\u5408<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">echo &#8220;\u5b9f\u969b\u306eAPI\u30ad\u30fc==&gt;***REMOVED***&#8221; &gt; ..\/secrets-to-replace.txt<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">git filter-repo &#8211;replace-text ..\/secrets-to-replace.txt<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u6ce8\u610f\u70b9\u3068\u3057\u3066\u3001\u3053\u306e\u64cd\u4f5c\u3092\u884c\u3046\u3068<strong><span style=\"color: #ff0000;\">\u30b3\u30df\u30c3\u30c8\u30cf\u30c3\u30b7\u30e5<\/span><\/strong>\u304c\u5168\u3066\u5909\u308f\u308a\u307e\u3059\u3002\u30c1\u30fc\u30e0\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u30e1\u30f3\u30d0\u30fc\u306b\u5fc5\u305a\u4e8b\u524d\u306b\u9023\u7d61\u3057\u3001\u64cd\u4f5c\u5f8c\u306b\u5168\u54e1\u304c\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u518d\u30af\u30ed\u30fc\u30f3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u4e00\u4eba\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u5834\u5408\u3067\u3082\u3001\u64cd\u4f5c\u524d\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u3063\u3066\u304a\u304f\u3068\u5b89\u5fc3\u3067\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span id=\"force_push\"><span style=\"font-weight: 400;\">\u4fee\u6b63\u3057\u305f\u5185\u5bb9\u3092force push\u3067\u53cd\u6620\u3059\u308b<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">\u5c65\u6b74\u306e\u66f8\u304d\u63db\u3048\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001GitHub\u306e\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u5f37\u5236push\u3057\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #3366ff;\"><span style=\"font-weight: 400;\"># \u5168\u30d6\u30e9\u30f3\u30c1\u3092\u5f37\u5236push\u3059\u308b<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">git push origin &#8211;force &#8211;all<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">git push origin &#8211;force &#8211;tags<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">force push\u5f8c\u306f\u3001GitHub\u30b5\u30dd\u30fc\u30c8\u306b\u9023\u7d61\u3057\u3066\u30ad\u30e3\u30c3\u30b7\u30e5\u3084\u6b8b\u5b58\u30b3\u30d4\u30fc\u306e\u524a\u9664\u3092\u4f9d\u983c\u3059\u308b\u3053\u3068\u3082\u691c\u8a0e\u3057\u307e\u3057\u3087\u3046\u3002\u516c\u958b\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u5834\u5408\u3001GitHub\u5074\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u60c5\u5831\u304c\u6b8b\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3067\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u307e\u305f\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u3092fork\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u304c\u3044\u308b\u5834\u5408\u306f\u3001\u305d\u306efork\u306b\u3082\u53e4\u3044\u5c65\u6b74\u304c\u6b8b\u3063\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<h2><span id=\"5\"><span style=\"font-weight: 400;\">\u4e8c\u5ea6\u3068\u7e70\u308a\u8fd4\u3055\u306a\u3044\u305f\u3081\u306e\u4e88\u9632\u7b565\u9078<\/span><\/span><\/h2>\n<p><img loading=\"lazy\" class=\"size-full wp-image-3509 aligncenter\" src=\"https:\/\/softasia.jp\/blog\/wp-content\/uploads\/2026\/05\/SOFT-_ASIA-35.png\" alt=\"\" width=\"640\" height=\"427\" srcset=\"https:\/\/softasia.jp\/blog\/wp-content\/uploads\/2026\/05\/SOFT-_ASIA-35.png 640w, https:\/\/softasia.jp\/blog\/wp-content\/uploads\/2026\/05\/SOFT-_ASIA-35-300x200.png 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u4e8b\u6545\u304c\u8d77\u304d\u305f\u5f8c\u306e\u5bfe\u51e6\u3082\u5927\u5207\u3067\u3059\u304c\u3001\u305d\u3082\u305d\u3082\u6a5f\u5bc6\u60c5\u5831\u3092push\u3057\u306a\u3044\u305f\u3081\u306e\u7fd2\u6163\u3092\u8eab\u306b\u3064\u3051\u308b\u3053\u3068\u304c\u6700\u3082\u91cd\u8981\u3067\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u521d\u5fc3\u8005\u306e\u3046\u3061\u304b\u3089\u5b9f\u8df5\u3067\u304d\u308b\u4e88\u9632\u7b56\u30925\u3064\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span id=\"gitignore\"><span style=\"font-weight: 400;\">.gitignore\u3092\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u958b\u59cb\u6642\u306b\u8a2d\u5b9a\u3059\u308b<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u59cb\u3081\u308b\u524d\u306b\u3001\u5fc5\u305a.gitignore\u30d5\u30a1\u30a4\u30eb\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u306f\u6700\u4f4e\u9650\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u305f\u3044\u8a18\u8ff0\u4f8b\u3067\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #3366ff;\"><span style=\"font-weight: 400;\"># \u74b0\u5883\u5909\u6570\u30d5\u30a1\u30a4\u30eb<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">.env<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">.env.local<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">.env.production<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">.env.staging<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"># \u9375\u30fb\u8a3c\u660e\u66f8\u30d5\u30a1\u30a4\u30eb<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">*.pem<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">*.key<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">*.p12<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">id_rsa<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"># \u6a5f\u5bc6\u60c5\u5831\u3092\u542b\u3080\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">config\/secrets.yml<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">credentials.json<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"># \u30ed\u30b0\u30d5\u30a1\u30a4\u30eb<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">*.log<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">logs\/<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">GitHub\u3067\u306f\u8a00\u8a9e\u3084\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3054\u3068\u306e.gitignore\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u516c\u5f0f\u306b\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002\u300c<span style=\"text-decoration: underline;\">github\/gitignore<\/span>\u300d\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u53c2\u8003\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u898b\u843d\u3068\u3057\u3092\u9632\u3052\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u307e\u305f\u3001\u65b0\u898f\u30ea\u30dd\u30b8\u30c8\u30ea\u4f5c\u6210\u6642\u306bGitHub\u4e0a\u3067\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span id=\"i-5\"><span style=\"font-weight: 400;\">\u74b0\u5883\u5909\u6570\u3092\u4f7f\u3063\u3066\u6a5f\u5bc6\u60c5\u5831\u3092\u7ba1\u7406\u3059\u308b<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">API\u30ad\u30fc\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u3001\u30b3\u30fc\u30c9\u306b\u76f4\u63a5\u66f8\u304b\u305a\u306b\u74b0\u5883\u5909\u6570\u3068\u3057\u3066\u7ba1\u7406\u3059\u308b\u306e\u304c\u57fa\u672c\u3067\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #3366ff;\"><span style=\"font-weight: 400;\">\/\/ NG\uff1a\u30b3\u30fc\u30c9\u306b\u76f4\u63a5\u66f8\u3044\u3066\u3057\u307e\u3063\u3066\u3044\u308b<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">const apiKey = &#8220;sk-xxxxxxxxxxxxxxxxxxxx&#8221;;<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">const dbPassword = &#8220;my-secret-password&#8221;;<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">\/\/ OK\uff1a\u74b0\u5883\u5909\u6570\u304b\u3089\u8aad\u307f\u8fbc\u3080<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">const apiKey = process.env.API_KEY;<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">const dbPassword = process.env.DB_PASSWORD;<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u672c\u756a\u74b0\u5883\u3067\u306fCI\/CD\u30c4\u30fc\u30eb\u3084\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u306e<strong><span style=\"color: #ff0000;\">\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u7ba1\u7406\u6a5f\u80fd\uff08GitHub Actions Secrets\u3001AWS Secrets Manager\uff09<\/span><\/strong>\u3092\u6d3b\u7528\u3057\u307e\u3057\u3087\u3046\u3002\u958b\u767a\u74b0\u5883\u3067\u306f.env\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u3044\u3001\u5fc5\u305a.gitignore\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3092\u5fd8\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span id=\"i-6\"><span style=\"font-weight: 400;\">\u30b3\u30df\u30c3\u30c8\u524d\u306b\u81ea\u52d5\u30c1\u30a7\u30c3\u30af\u3059\u308b\u30c4\u30fc\u30eb\u3092\u5c0e\u5165\u3059\u308b<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">\u300c<span style=\"color: #ff0000;\"><strong>Gitleaks<\/strong><\/span>\u300d\u3068\u3044\u3046\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30c4\u30fc\u30eb\u3092\u4f7f\u3046\u3068\u3001\u30b3\u30df\u30c3\u30c8\u6642\u306b800\u7a2e\u985e\u4ee5\u4e0a\u306e\u6a5f\u5bc6\u60c5\u5831\u30d1\u30bf\u30fc\u30f3\u3092\u81ea\u52d5\u691c\u51fa\u3057\u3066\u304f\u308c\u307e\u3059\u3002pre-commit\u30d5\u30c3\u30af\u3068\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u3046\u3063\u304b\u308a\u30df\u30b9\u3092\u9632\u3052\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #3366ff;\"><span style=\"font-weight: 400;\"># Gitleaks\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08macOS \/ Homebrew\uff09<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">brew install gitleaks<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"># \u30ea\u30dd\u30b8\u30c8\u30ea\u5168\u4f53\u3092\u30b9\u30ad\u30e3\u30f3\u3059\u308b<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">gitleaks detect &#8211;source .<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"># \u30b3\u30df\u30c3\u30c8\u524d\u306b\u81ea\u52d5\u30c1\u30a7\u30c3\u30af\uff08pre-commit\u30d5\u30c3\u30af\u3068\u3057\u3066\u8a2d\u5b9a\uff09<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"># .git\/hooks\/pre-commit \u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u3092\u8a18\u8ff0<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">gitleaks protect &#8211;staged -v<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u307e\u305f\u3001GitHub\u306e\u300c<span style=\"text-decoration: underline;\">Push Protection<\/span>\u300d\u6a5f\u80fd\u3092\u6709\u52b9\u306b\u3059\u308b\u3053\u3068\u3067\u3001push\u306e\u6bb5\u968e\u3067\u30d6\u30ed\u30c3\u30af\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u7121\u6599\u30d7\u30e9\u30f3\u3067\u3082\u30d1\u30d6\u30ea\u30c3\u30af\u30ea\u30dd\u30b8\u30c8\u30ea\u306f\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002\u8a2d\u5b9a\u306fGitHub\u4e0a\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u8a2d\u5b9a\u304b\u3089\u884c\u3048\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span id=\"i-7\"><span style=\"font-weight: 400;\">\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u7ba1\u7406\u30b5\u30fc\u30d3\u30b9\u3092\u7a4d\u6975\u6d3b\u7528\u3059\u308b<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">\u6a5f\u5bc6\u60c5\u5831\u306f\u5404\u30af\u30e9\u30a6\u30c9\u30d7\u30ed\u30d0\u30a4\u30c0\u304c\u63d0\u4f9b\u3059\u308b\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u7ba1\u7406\u30b5\u30fc\u30d3\u30b9\u306b\u4fdd\u7ba1\u3059\u308b\u306e\u304c\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3067\u3059\u3002\u30b3\u30fc\u30c9\u306b\u6a5f\u5bc6\u60c5\u5831\u3092\u4e00\u5207\u66f8\u304b\u305a\u306b\u6e08\u3080\u74b0\u5883\u3092\u6574\u3048\u307e\u3057\u3087\u3046\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>AWS Secrets Manager<\/b><\/p>\n<p><span style=\"font-weight: 400;\">AWS\u3092\u4f7f\u3063\u3066\u3044\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5411\u3051\u306e\u672c\u683c\u7684\u306a\u6a5f\u5bc6\u7ba1\u7406\u30b5\u30fc\u30d3\u30b9\u3002\u81ea\u52d5\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u6a5f\u80fd\u3082\u5099\u3048\u3066\u3044\u308b<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>GitHub Actions Secrets<\/b><\/p>\n<p><span style=\"font-weight: 400;\">GitHub Actions\u306eCI\/CD\u74b0\u5883\u3067\u306e\u6a5f\u5bc6\u60c5\u5831\u7ba1\u7406\u306b\u6700\u9069\u3002\u30ea\u30dd\u30b8\u30c8\u30ea\u30fbOrganization\u30fb\u74b0\u5883\u3054\u3068\u306b\u8a2d\u5b9a\u53ef\u80fd<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>HashiCorp Vault<\/b><\/p>\n<p><span style=\"font-weight: 400;\">\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u5f37\u529b\u306a\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u7ba1\u7406\u30c4\u30fc\u30eb\u3002\u81ea\u793e\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u5c0e\u5165\u3082\u53ef\u80fd\u3067\u3001\u5927\u898f\u6a21\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u9069\u3057\u3066\u3044\u308b<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>1Password Secrets Automation<\/b><\/p>\n<p><span style=\"font-weight: 400;\">\u30c1\u30fc\u30e0\u3067\u4f7f\u3044\u3084\u3059\u304f\u3001UI\u3082\u76f4\u611f\u7684\u3002\u65e2\u5b58\u306e1Password\u30a2\u30ab\u30a6\u30f3\u30c8\u3068\u9023\u643a\u3067\u304d\u308b<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><span id=\"i-8\"><span style=\"font-weight: 400;\">\u5b9a\u671f\u7684\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b9\u30ad\u30e3\u30f3\u3092\u7fd2\u6163\u306b\u3059\u308b<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u6210\u9577\u3059\u308b\u306b\u3064\u308c\u3001\u3044\u3064\u306e\u9593\u306b\u304b\u6a5f\u5bc6\u60c5\u5831\u304c\u7d1b\u308c\u8fbc\u3093\u3067\u3044\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<span style=\"color: #ff0000;\"><strong>TruffleHog<\/strong><\/span>\u3068\u3044\u3046\u30c4\u30fc\u30eb\u306f\u3001\u691c\u51fa\u3057\u305f\u60c5\u5831\u304c\u300c<span style=\"text-decoration: underline;\">\u73fe\u5728\u3082\u6709\u52b9\u304b<\/span>\u300d\u3092\u5b9f\u969b\u306b\u691c\u8a3c\u3067\u304d\u308b\u72ec\u81ea\u6a5f\u80fd\u3092\u6301\u3063\u3066\u304a\u308a\u3001\u5b9a\u671f\u7684\u306a\u30b9\u30ad\u30e3\u30f3\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #3366ff;\"><span style=\"font-weight: 400;\"># TruffleHog\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">pip install trufflehog<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"># \u30ed\u30fc\u30ab\u30eb\u306eGit\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30b9\u30ad\u30e3\u30f3<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">trufflehog git file:\/\/.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"># GitHub\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30b9\u30ad\u30e3\u30f3<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">trufflehog github &#8211;repo https:\/\/github.com\/your-username\/your-repo<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">GitHub Actions\u3092\u4f7f\u3063\u3066\u5b9a\u671f\u7684\u306a\u81ea\u52d5\u30b9\u30ad\u30e3\u30f3\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3068\u3001\u7d99\u7d9a\u7684\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u78ba\u8a8d\u304c\u53ef\u80fd\u3067\u3059\u3002\u6bce\u65e5\u6df1\u591c\u306b\u81ea\u52d5\u3067\u30b9\u30ad\u30e3\u30f3\u3092\u5b9f\u884c\u3059\u308b\u8a2d\u5b9a\u3082\u3001\u6570\u884c\u306eYAML\u3067\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<h2><span id=\"i-9\"><span style=\"font-weight: 400;\">\u307e\u3068\u3081<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">GitHub\u3078\u306e\u6a5f\u5bc6\u60c5\u5831\u306e\u8aa4push\u4e8b\u6545\u306f\u3001\u30d9\u30c6\u30e9\u30f3\u30a8\u30f3\u30b8\u30cb\u30a2\u3067\u3082\u7d4c\u9a13\u3059\u308b\u3053\u3068\u304c\u3042\u308b\u5931\u6557\u3067\u3059\u3002\u5927\u5207\u306a\u306e\u306f\u3001\u4e8b\u6545\u304c\u8d77\u304d\u305f\u3068\u304d\u306b\u51b7\u9759\u306b\u7d20\u65e9\u304f\u5bfe\u5fdc\u3067\u304d\u308b\u77e5\u8b58\u3092\u6301\u3064\u3053\u3068\u3001\u305d\u3057\u3066\u4e8b\u524d\u306b\u3057\u3063\u304b\u308a\u3068\u4e88\u9632\u7b56\u3092\u8b1b\u3058\u308b\u3053\u3068\u3067\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p data-path-to-node=\"12\"><a href=\"https:\/\/softasia.jp\/#contact\"><span style=\"color: #0000ff;\"><em><b data-path-to-node=\"12\" data-index-in-node=\"0\">3ink<\/b><\/em><\/span><\/a>\u3067\u306f\u3001\u6700\u5148\u7aef\u306e\u6280\u8853\u30c8\u30ec\u30f3\u30c9\u3092\u62bc\u3055\u3048\u305f\u9ad8\u5ea6\u306a\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u304b\u3089\u3001\u5fa1\u793e\u306e\u958b\u767a\u73fe\u5834\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5f37\u5316\u30fb\u30ac\u30d0\u30ca\u30f3\u30b9\u69cb\u7bc9\u3092\u652f\u3048\u308b\u30b3\u30f3\u30b5\u30eb\u30c6\u30a3\u30f3\u30b0\u307e\u3067\u5e45\u5e83\u304f\u67d4\u8edf\u306b\u5bfe\u5fdc\u3057\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p data-path-to-node=\"13\">\u300c\u5b89\u5168\u3067\u5f37\u56fa\u306a\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3057\u305f\u3044\u300d\u300c\u81ea\u793e\u306e\u958b\u767a\u30d7\u30ed\u30bb\u30b9\u306b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u4ed5\u7d44\u307f\u3092\u7d44\u307f\u8fbc\u307f\u305f\u3044\u300d\u306a\u3069\u3001\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u306b\u95a2\u3059\u308b\u3054\u8981\u671b\u3084\u3054\u76f8\u8ac7\u304c\u3054\u3056\u3044\u307e\u3057\u305f\u3089\u3001\u3044\u3064\u3067\u3082\u304a\u6c17\u8efd\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><br style=\"font-weight: 400;\" \/><br style=\"font-weight: 400;\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3093\u3067\u3044\u308b\u3068\u3001\u8ab0\u3082\u304c\u4e00\u5ea6\u306f\u30d2\u30e4\u30ea\u3068\u3059\u308b\u5834\u9762\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u3072\u3068\u3064\u304c\u300cGitHub\u306b\u6a5f\u5bc6\u60c5\u5831\u3092\u8aa4\u3063\u3066push\u3057\u3066\u3057\u307e\u3063\u305f\u300d\u3068\u3044\u3046\u5931\u6557\u3067\u3059\u3002 &nbsp; AWS\u306e\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1 [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":3501,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[1,9],"tags":[],"jetpack_featured_media_url":"https:\/\/softasia.jp\/blog\/wp-content\/uploads\/2026\/05\/SOFT_ASIA_\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1-1000-x-1000-px-7.png","_links":{"self":[{"href":"https:\/\/softasia.jp\/blog\/wp-json\/wp\/v2\/posts\/3499"}],"collection":[{"href":"https:\/\/softasia.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softasia.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softasia.jp\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/softasia.jp\/blog\/wp-json\/wp\/v2\/comments?post=3499"}],"version-history":[{"count":35,"href":"https:\/\/softasia.jp\/blog\/wp-json\/wp\/v2\/posts\/3499\/revisions"}],"predecessor-version":[{"id":3604,"href":"https:\/\/softasia.jp\/blog\/wp-json\/wp\/v2\/posts\/3499\/revisions\/3604"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softasia.jp\/blog\/wp-json\/wp\/v2\/media\/3501"}],"wp:attachment":[{"href":"https:\/\/softasia.jp\/blog\/wp-json\/wp\/v2\/media?parent=3499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softasia.jp\/blog\/wp-json\/wp\/v2\/categories?post=3499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softasia.jp\/blog\/wp-json\/wp\/v2\/tags?post=3499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}