Skip to content

Add .netrc to default .gitignore #3511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 26, 2021
Merged

Add .netrc to default .gitignore #3511

merged 1 commit into from
May 26, 2021

Conversation

mattt
Copy link
Contributor

@mattt mattt commented May 26, 2021

This PR adds .netrc to the .gitignore file in the new project template.

Motivation:

As discussed in swiftlang/swift-evolution#1319, a user may inadvertently expose credentials by checking in their project's .netrc file. Adding this entry to the .gitignore file in the new project template significantly minimizes the possibility of the user leaking credentials in the future.

Modifications:

+ .netrc

Result:

After this change, all future projects created by running swift package init will default to ignoring .netrc files.

Existing packages will be unaffected.

@tomerd
Copy link
Contributor

tomerd commented May 26, 2021

@swift-ci please smoke test

@tomerd tomerd merged commit 9b0917f into main May 26, 2021
@mattt mattt deleted the ignore-netrc branch May 27, 2021 16:22
@mattt mattt mentioned this pull request Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants