Skip to content

[Security Issue] Update README.md to recommend removing auth.json after use #64

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
Sep 25, 2021

Conversation

TheLastCicada
Copy link
Contributor

The auth.json file is created with a Github username and password to be used to authenticate requests from Composer back to Github. The username and password is recommended to use a personal access token to access private repos. The auth.json file is created at the root of the repo and if your Github Actions job eventually deploys the contents of this repo to a web accessible server, it will deploy the auth.json file too based on how the example is written. This update adds a step to remove the auth.json file from the repo after it is used by Composer, preventing sensitive credentials from being deployed in plain text to a potentially public location.

The auth.json file is created with a Github username and password to be used to authenticate requests from Composer back to Github.  The username and password is recommended to use a personal access token to access private repos.  The auth.json file is created at the root of the repo and if your Github Actions job eventually deploys the contents of this repo to a web accessible server, it will deploy the auth.json file too based on how the example is written.  This update adds a step to remove the auth.json file from the repo after it is used by Composer, preventing sensitive credentials from being deployed in plain text to a potentially public location.
@g105b g105b merged commit 0a2fe11 into php-actions:master Sep 25, 2021
@g105b
Copy link
Member

g105b commented Sep 25, 2021

Thank you @TheLastCicada , that's a good improvement and a nice catch. Always good to be looking out for the next developer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants