Skip to content
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

chore: Set permissions for GitHub actions #360

Merged
merged 2 commits into from May 11, 2022

Conversation

naveensrinivasan
Copy link
Contributor

 Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
@danielaparker
Copy link
Owner

Can you look at the four cancelled checks involving Windows / vs2017 builds?

@naveensrinivasan
Copy link
Contributor Author

Can you look at the four cancelled checks involving Windows / vs2017 builds?

TBH I don't know why? I removed the change for Windows.

@naveensrinivasan
Copy link
Contributor Author

image

Probably this is the reason https://github.com/danielaparker/jsoncons/actions/runs/2302898313

Even without the Windows change the workflow is failing.

@danielaparker
Copy link
Owner

I see. Could you restore the change for Windows then? I'll accept the pull request, and address the issue with the vs2017 builds separately.

@naveensrinivasan
Copy link
Contributor Author

I see. Could you restore the change for Windows then? I'll accept the pull request, and address the issue with the vs2017 builds separately.

@danielaparker I did. The only change is there with the .bak file for windows which shouldn't be an issue.

@danielaparker danielaparker merged commit 144db2b into danielaparker:master May 11, 2022
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.

None yet

2 participants