Harden GitHub Actions using full commit SHAs and enable Dependabot for action
Maintainers usually reply within 3 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
Research direction
Start by reviewing the repository's GitHub Actions workflows and the GitHub security guidance linked in the issue, along with the related pull request 9058. Pin third-party actions to verified full commit SHAs and add Dependabot configuration for action updates; done means the workflows are hardened and future SHA updates can be proposed automatically.
Written by the indexing model from the issue text.
Description
This PR: https://github.com/osquery/osquery/pull/9058 got me thinking: We should consider pinning github Actions to a full SHA to protect against supply chain attacks:
Pin actions to a full-length commit SHA
Pinning an action to a full-length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload. When selecting a SHA, you should verify it is from the action's repository and not a repository fork.
Personally I use that in combination with dependabot to keep my github action SHAs up to date, however that does introduce more PRs to merge. I'm Happy to help review the PRs if that would be useful.
https://docs.github.com/en/actions/reference/security/secure-use#using-third-party-actions
- Dominant language
- C++
- Stars
- 23.8k
- Forks
- 2.7k
- Avg merge
- 6d 11h
- Merged PRs (30d)
- 69
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from osquery/osquery
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 3 days
-
usb_devices: usb_address and usb_port are wrong for bus/device numbers 8–99 on Linux (zero-padded udev values parsed as octal)Possibly taken @mjatin2007 claimed this 6 days ago. OpenLinux virtual tables
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 3 days
-
Update the expired Slack invite link in READMEMay be free again @ayushkrsingh946 claimed this 39 days ago, and no pull request is open. Openmaintainer task
Difficulty 1/5 Under an hour Newbie friendliness 68/100
osquery/osquery#9215 · 4 comments ·
Maintainers usually reply within 3 days
-
fix(docs): debugging guide incorrectly says invalid configuration blocks daemon startupPossibly taken @nightcityblade claimed this 54 days ago. Openconfiguration documentation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
osquery/osquery#9143 · 1 comment ·
Maintainers usually reply within 3 days
-
scheduled_tasks.hidden returns the task's Enabled state instead of Hidden (Windows)Possibly taken @a-bonfim-tech claimed this 67 days ago. Openbug triage virtual tables Windows
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 3 days
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
[Bug]: pip install -U cudaq-qec fails with a conflict that names cudaq-qec itselfPossibly taken @fedonman claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
task
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
SparseLinearAlgebra/spla#316 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day