{"action":"closed","number":3,"pull_request":{"url":"https://api.github.com/repos/jacebenson/security-on-github/pulls/3","id":227837754,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3ODM3NzU0","html_url":"https://github.com/jacebenson/security-on-github/pull/3","diff_url":"https://github.com/jacebenson/security-on-github/pull/3.diff","patch_url":"https://github.com/jacebenson/security-on-github/pull/3.patch","issue_url":"https://api.github.com/repos/jacebenson/security-on-github/issues/3","number":3,"state":"closed","locked":false,"title":"Add a `.gitignore` file","user":{"login":"github-learning-lab[bot]","id":37936606,"node_id":"MDM6Qm90Mzc5MzY2MDY=","avatar_url":"https://avatars0.githubusercontent.com/in/10572?v=4","gravatar_id":"","url":"https://api.github.com/users/github-learning-lab%5Bbot%5D","html_url":"https://github.com/apps/github-learning-lab","followers_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/followers","following_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/repos","events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/github-learning-lab%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"## Taking advantage of the `.gitignore` file for security\n\nFrom time to time, there are files you don't want Git to check in to GitHub. You may want to ignore files that contain sensitive credentials or information which should not be pushed to your repository. There are a few ways to tell Git which files to ignore.\n\n### Ignoring files\n\nGit uses a file called `.gitignore` to decide which files and directories to ignore when committing.  Keep files containing sensitive data, like configuration or `env` files, out of your repositories. This is one way to promote security best practices.\n\nThe `.gitignore` file can, and should, be committed into your repository.  By sharing this file and making it part of your code, it will also help others. Other users that contribute to the repository will also avoid committing sensitive data. There are many examples of `.gitignore` files available for you to use in your own repositories. You can find them in the [gitignore](https://github.com/github/gitignore) repository.\n\n## Step 5: Ignore files\n\nIn this pull request, I'm adding a `.gitignore` file. Files ending with `.env` commonly include sensitive data. This helps you keep files with sensitive data secure and private. Let's add those files to the `.gitignore`.\n\n### :keyboard: Activity: Updating the .gitignore file\n\n1. Within this pull request, go to **Files changed**\n1. Click the pencil in the right upper corner to edit the `.gitignore` file\n1. Edit the file by adding `.env` to line 1\n1. Scroll down, and commit your change\n\n > _Note: Even after adding a file to the `.gitignore`, the previous commits that have edited that file still exist. If you accidentally committed sensitive data, first change any tokens or passwords. Then, contact GitHub Support for help correcting your history._\n\nFor a printable version of the steps in this course, check out the [Quick Reference Guide](https://lab.github.com/public/securing-your-workflows.pdf).\n\n<hr>\n<h3 align=\"center\">Return to this pull request for my next comment</h3>\n\n> _Sometimes I respond too fast for the page to update! If you perform an expected action and don't see a response from me, wait a few seconds. Then refresh the page for your next steps._\n","created_at":"2018-11-02T05:49:18Z","updated_at":"2018-11-02T05:53:50Z","closed_at":"2018-11-02T05:53:49Z","merged_at":"2018-11-02T05:53:49Z","merge_commit_sha":"4c7e516e9b69765c17e9b39f669b8e4dac2f6244","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jacebenson/security-on-github/pulls/3/commits","review_comments_url":"https://api.github.com/repos/jacebenson/security-on-github/pulls/3/comments","review_comment_url":"https://api.github.com/repos/jacebenson/security-on-github/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jacebenson/security-on-github/issues/3/comments","statuses_url":"https://api.github.com/repos/jacebenson/security-on-github/statuses/976812f58f249d385a926fbf5f8a85152495280d","head":{"label":"jacebenson:add-gitignore","ref":"add-gitignore","sha":"976812f58f249d385a926fbf5f8a85152495280d","user":{"login":"jacebenson","id":638764,"node_id":"MDQ6VXNlcjYzODc2NA==","avatar_url":"https://avatars3.githubusercontent.com/u/638764?v=4","gravatar_id":"","url":"https://api.github.com/users/jacebenson","html_url":"https://github.com/jacebenson","followers_url":"https://api.github.com/users/jacebenson/followers","following_url":"https://api.github.com/users/jacebenson/following{/other_user}","gists_url":"https://api.github.com/users/jacebenson/gists{/gist_id}","starred_url":"https://api.github.com/users/jacebenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacebenson/subscriptions","organizations_url":"https://api.github.com/users/jacebenson/orgs","repos_url":"https://api.github.com/users/jacebenson/repos","events_url":"https://api.github.com/users/jacebenson/events{/privacy}","received_events_url":"https://api.github.com/users/jacebenson/received_events","type":"User","site_admin":false},"repo":{"id":155819914,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU4MTk5MTQ=","name":"security-on-github","full_name":"jacebenson/security-on-github","private":false,"owner":{"login":"jacebenson","id":638764,"node_id":"MDQ6VXNlcjYzODc2NA==","avatar_url":"https://avatars3.githubusercontent.com/u/638764?v=4","gravatar_id":"","url":"https://api.github.com/users/jacebenson","html_url":"https://github.com/jacebenson","followers_url":"https://api.github.com/users/jacebenson/followers","following_url":"https://api.github.com/users/jacebenson/following{/other_user}","gists_url":"https://api.github.com/users/jacebenson/gists{/gist_id}","starred_url":"https://api.github.com/users/jacebenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacebenson/subscriptions","organizations_url":"https://api.github.com/users/jacebenson/orgs","repos_url":"https://api.github.com/users/jacebenson/repos","events_url":"https://api.github.com/users/jacebenson/events{/privacy}","received_events_url":"https://api.github.com/users/jacebenson/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jacebenson/security-on-github","description":null,"fork":false,"url":"https://api.github.com/repos/jacebenson/security-on-github","forks_url":"https://api.github.com/repos/jacebenson/security-on-github/forks","keys_url":"https://api.github.com/repos/jacebenson/security-on-github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacebenson/security-on-github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacebenson/security-on-github/teams","hooks_url":"https://api.github.com/repos/jacebenson/security-on-github/hooks","issue_events_url":"https://api.github.com/repos/jacebenson/security-on-github/issues/events{/number}","events_url":"https://api.github.com/repos/jacebenson/security-on-github/events","assignees_url":"https://api.github.com/repos/jacebenson/security-on-github/assignees{/user}","branches_url":"https://api.github.com/repos/jacebenson/security-on-github/branches{/branch}","tags_url":"https://api.github.com/repos/jacebenson/security-on-github/tags","blobs_url":"https://api.github.com/repos/jacebenson/security-on-github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacebenson/security-on-github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacebenson/security-on-github/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacebenson/security-on-github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacebenson/security-on-github/statuses/{sha}","languages_url":"https://api.github.com/repos/jacebenson/security-on-github/languages","stargazers_url":"https://api.github.com/repos/jacebenson/security-on-github/stargazers","contributors_url":"https://api.github.com/repos/jacebenson/security-on-github/contributors","subscribers_url":"https://api.github.com/repos/jacebenson/security-on-github/subscribers","subscription_url":"https://api.github.com/repos/jacebenson/security-on-github/subscription","commits_url":"https://api.github.com/repos/jacebenson/security-on-github/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacebenson/security-on-github/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacebenson/security-on-github/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacebenson/security-on-github/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacebenson/security-on-github/contents/{+path}","compare_url":"https://api.github.com/repos/jacebenson/security-on-github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacebenson/security-on-github/merges","archive_url":"https://api.github.com/repos/jacebenson/security-on-github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacebenson/security-on-github/downloads","issues_url":"https://api.github.com/repos/jacebenson/security-on-github/issues{/number}","pulls_url":"https://api.github.com/repos/jacebenson/security-on-github/pulls{/number}","milestones_url":"https://api.github.com/repos/jacebenson/security-on-github/milestones{/number}","notifications_url":"https://api.github.com/repos/jacebenson/security-on-github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacebenson/security-on-github/labels{/name}","releases_url":"https://api.github.com/repos/jacebenson/security-on-github/releases{/id}","deployments_url":"https://api.github.com/repos/jacebenson/security-on-github/deployments","created_at":"2018-11-02T05:49:10Z","updated_at":"2018-11-02T05:49:16Z","pushed_at":"2018-11-02T05:53:49Z","git_url":"git://github.com/jacebenson/security-on-github.git","ssh_url":"git@github.com:jacebenson/security-on-github.git","clone_url":"https://github.com/jacebenson/security-on-github.git","svn_url":"https://github.com/jacebenson/security-on-github","homepage":"https://lab.github.com/githubtraining/securing-your-workflows","size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"jacebenson:master","ref":"master","sha":"b6039e7c8ce6c229c05a66380215fc9fb088ad3c","user":{"login":"jacebenson","id":638764,"node_id":"MDQ6VXNlcjYzODc2NA==","avatar_url":"https://avatars3.githubusercontent.com/u/638764?v=4","gravatar_id":"","url":"https://api.github.com/users/jacebenson","html_url":"https://github.com/jacebenson","followers_url":"https://api.github.com/users/jacebenson/followers","following_url":"https://api.github.com/users/jacebenson/following{/other_user}","gists_url":"https://api.github.com/users/jacebenson/gists{/gist_id}","starred_url":"https://api.github.com/users/jacebenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacebenson/subscriptions","organizations_url":"https://api.github.com/users/jacebenson/orgs","repos_url":"https://api.github.com/users/jacebenson/repos","events_url":"https://api.github.com/users/jacebenson/events{/privacy}","received_events_url":"https://api.github.com/users/jacebenson/received_events","type":"User","site_admin":false},"repo":{"id":155819914,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU4MTk5MTQ=","name":"security-on-github","full_name":"jacebenson/security-on-github","private":false,"owner":{"login":"jacebenson","id":638764,"node_id":"MDQ6VXNlcjYzODc2NA==","avatar_url":"https://avatars3.githubusercontent.com/u/638764?v=4","gravatar_id":"","url":"https://api.github.com/users/jacebenson","html_url":"https://github.com/jacebenson","followers_url":"https://api.github.com/users/jacebenson/followers","following_url":"https://api.github.com/users/jacebenson/following{/other_user}","gists_url":"https://api.github.com/users/jacebenson/gists{/gist_id}","starred_url":"https://api.github.com/users/jacebenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacebenson/subscriptions","organizations_url":"https://api.github.com/users/jacebenson/orgs","repos_url":"https://api.github.com/users/jacebenson/repos","events_url":"https://api.github.com/users/jacebenson/events{/privacy}","received_events_url":"https://api.github.com/users/jacebenson/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jacebenson/security-on-github","description":null,"fork":false,"url":"https://api.github.com/repos/jacebenson/security-on-github","forks_url":"https://api.github.com/repos/jacebenson/security-on-github/forks","keys_url":"https://api.github.com/repos/jacebenson/security-on-github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacebenson/security-on-github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacebenson/security-on-github/teams","hooks_url":"https://api.github.com/repos/jacebenson/security-on-github/hooks","issue_events_url":"https://api.github.com/repos/jacebenson/security-on-github/issues/events{/number}","events_url":"https://api.github.com/repos/jacebenson/security-on-github/events","assignees_url":"https://api.github.com/repos/jacebenson/security-on-github/assignees{/user}","branches_url":"https://api.github.com/repos/jacebenson/security-on-github/branches{/branch}","tags_url":"https://api.github.com/repos/jacebenson/security-on-github/tags","blobs_url":"https://api.github.com/repos/jacebenson/security-on-github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacebenson/security-on-github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacebenson/security-on-github/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacebenson/security-on-github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacebenson/security-on-github/statuses/{sha}","languages_url":"https://api.github.com/repos/jacebenson/security-on-github/languages","stargazers_url":"https://api.github.com/repos/jacebenson/security-on-github/stargazers","contributors_url":"https://api.github.com/repos/jacebenson/security-on-github/contributors","subscribers_url":"https://api.github.com/repos/jacebenson/security-on-github/subscribers","subscription_url":"https://api.github.com/repos/jacebenson/security-on-github/subscription","commits_url":"https://api.github.com/repos/jacebenson/security-on-github/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacebenson/security-on-github/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacebenson/security-on-github/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacebenson/security-on-github/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacebenson/security-on-github/contents/{+path}","compare_url":"https://api.github.com/repos/jacebenson/security-on-github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacebenson/security-on-github/merges","archive_url":"https://api.github.com/repos/jacebenson/security-on-github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacebenson/security-on-github/downloads","issues_url":"https://api.github.com/repos/jacebenson/security-on-github/issues{/number}","pulls_url":"https://api.github.com/repos/jacebenson/security-on-github/pulls{/number}","milestones_url":"https://api.github.com/repos/jacebenson/security-on-github/milestones{/number}","notifications_url":"https://api.github.com/repos/jacebenson/security-on-github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacebenson/security-on-github/labels{/name}","releases_url":"https://api.github.com/repos/jacebenson/security-on-github/releases{/id}","deployments_url":"https://api.github.com/repos/jacebenson/security-on-github/deployments","created_at":"2018-11-02T05:49:10Z","updated_at":"2018-11-02T05:49:16Z","pushed_at":"2018-11-02T05:53:49Z","git_url":"git://github.com/jacebenson/security-on-github.git","ssh_url":"git@github.com:jacebenson/security-on-github.git","clone_url":"https://github.com/jacebenson/security-on-github.git","svn_url":"https://github.com/jacebenson/security-on-github","homepage":"https://lab.github.com/githubtraining/securing-your-workflows","size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jacebenson/security-on-github/pulls/3"},"html":{"href":"https://github.com/jacebenson/security-on-github/pull/3"},"issue":{"href":"https://api.github.com/repos/jacebenson/security-on-github/issues/3"},"comments":{"href":"https://api.github.com/repos/jacebenson/security-on-github/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/jacebenson/security-on-github/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/jacebenson/security-on-github/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jacebenson/security-on-github/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/jacebenson/security-on-github/statuses/976812f58f249d385a926fbf5f8a85152495280d"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"jacebenson","id":638764,"node_id":"MDQ6VXNlcjYzODc2NA==","avatar_url":"https://avatars3.githubusercontent.com/u/638764?v=4","gravatar_id":"","url":"https://api.github.com/users/jacebenson","html_url":"https://github.com/jacebenson","followers_url":"https://api.github.com/users/jacebenson/followers","following_url":"https://api.github.com/users/jacebenson/following{/other_user}","gists_url":"https://api.github.com/users/jacebenson/gists{/gist_id}","starred_url":"https://api.github.com/users/jacebenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacebenson/subscriptions","organizations_url":"https://api.github.com/users/jacebenson/orgs","repos_url":"https://api.github.com/users/jacebenson/repos","events_url":"https://api.github.com/users/jacebenson/events{/privacy}","received_events_url":"https://api.github.com/users/jacebenson/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":1,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"jacebenson"}}