Skip to content

chore: add secrets to actions that use the bot - #556

Merged
klmcadams merged 9 commits into
mainfrom
maint/secrets-for-bot
Sep 13, 2024
Merged

klmcadams merged 9 commits into
mainfrom
maint/secrets-for-bot

Conversation

@klmcadams

Copy link
Copy Markdown
Contributor

Replace bot username and email with secrets and update corresponding examples

THIS IS A BREAKING CHANGE

@klmcadams
klmcadams requested a review from a team as a code owner September 4, 2024 15:52
@ansys-reviewer-bot

Copy link
Copy Markdown
Contributor

Thanks for opening a Pull Request. If you want to perform a review write a comment saying:

@ansys-reviewer-bot review

@github-actions github-actions Bot added the maintenance Generic maintenance related label Sep 4, 2024
Comment thread doc/source/migrations/index.rst Resolved
Comment thread doc-deploy-changelog/action.yml Resolved
Comment thread doc-deploy-changelog/action.yml Resolved
Comment thread doc-deploy-dev/action.yml Resolved
Comment thread doc-deploy-dev/action.yml Resolved
Comment thread doc-deploy-stable/action.yml Resolved
Comment thread doc-deploy-stable/action.yml Resolved
Comment thread doc-changelog/action.yml Resolved
Comment thread doc-changelog/action.yml Resolved
Comment thread doc-changelog/action.yml Resolved
@klmcadams

Copy link
Copy Markdown
Contributor Author

@SMoraisAnsys @germa89 @RobPasMue I applied your suggestions. The reason why I was using the environment variables was because of an article Jay shared with us a long time ago about secure development practices in GitHub actions. I haven't been able to find the article, but I'll share it with you if I find it

@klmcadams

klmcadams commented Sep 11, 2024 •

Copy link
Copy Markdown
Contributor Author

Here is an article that talks about using env variables to prevent script injection vulnerabilities: https://www.stepsecurity.io/blog/github-actions-security-best-practices#prevent-script-injection-vulnerabilities-2

Because of this, I think I should add back the env variable for at least the PR title

@RobPasMue

Copy link
Copy Markdown
Member

Here is an article that talks about using env variables to prevent script injection vulnerabilities: https://www.stepsecurity.io/blog/github-actions-security-best-practices#prevent-script-injection-vulnerabilities-2

Because of this, I think I should add back the env variable for at least the PR title

Good find @klmcadams - let's do it only for the github-context related things.

@RobPasMue

Copy link
Copy Markdown
Member

Or even all of them - as long as it is justified, that's fine by me

@klmcadams

Copy link
Copy Markdown
Contributor Author

@klmcadams
klmcadams marked this pull request as draft September 11, 2024 14:51
@klmcadams
klmcadams marked this pull request as ready for review September 11, 2024 16:24

@RobPasMue RobPasMue left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have the feeling you missed some of them @klmcadams - sorry for going back and forth on all these inputs. At least now it's clear.

Comment thread doc-changelog/action.yml Resolved
Comment thread doc-changelog/action.yml Resolved
Comment thread doc-changelog/action.yml Resolved
@klmcadams
klmcadams merged commit 92cd10b into main Sep 13, 2024
@klmcadams
klmcadams deleted the maint/secrets-for-bot branch September 13, 2024 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Generic maintenance related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants