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 #3758

Merged
merged 1 commit into from May 4, 2022

Conversation

nathannaveen
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: nathannaveen <42319948+nathannaveen@users.noreply.github.com>
@tencent-adm
Copy link

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@codecov-commenter
Copy link

codecov-commenter commented May 4, 2022

Codecov Report

Merging #3758 (f25230b) into master (615d63e) will decrease coverage by 1.61%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3758      +/-   ##
==========================================
- Coverage   93.33%   91.72%   -1.62%     
==========================================
  Files         672      672              
  Lines      171577   171156     -421     
==========================================
- Hits       160146   156997    -3149     
- Misses      11431    14159    +2728     
Impacted Files Coverage Δ
src/layer/x86/convolution_2x2_pack8.h 2.75% <0.00%> (-97.25%) ⬇️
src/layer/x86/convolution_sgemm_pack8.h 13.73% <0.00%> (-85.24%) ⬇️
src/layer/x86/deconvolution_pack8.h 20.00% <0.00%> (-80.00%) ⬇️
src/layer/x86/convolution_sgemm_pack4to8.h 29.16% <0.00%> (-70.84%) ⬇️
src/layer/x86/convolution_pack8.h 34.42% <0.00%> (-65.58%) ⬇️
src/layer/x86/convolution_pack4to8.h 42.85% <0.00%> (-55.11%) ⬇️
src/layer/x86/convolution_3x3_pack1to8.h 39.95% <0.00%> (-40.04%) ⬇️
src/layer/x86/convolution_1x1_pack8.h 66.66% <0.00%> (-33.34%) ⬇️
src/layer/x86/convolution_1x1_pack4to8.h 66.66% <0.00%> (-33.34%) ⬇️
src/layer/x86/convolution_3x3_pack8.h 67.75% <0.00%> (-26.09%) ⬇️
... and 40 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1634de3...f25230b. Read the comment docs.

@nihui nihui merged commit d7cc08b into Tencent:master May 4, 2022
@nihui
Copy link
Member

nihui commented May 4, 2022

Thanks for your contribution !

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

4 participants