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

CI: move some vars to env and set persist-credentials: false for actions/checkout@v4 #22519

Merged
merged 2 commits into from
Dec 14, 2024

Conversation

Grimler91
Copy link
Member

After recent attack through github actions against https://github.com/ultralytics I had a look at our scripts.

Most of the fixed variables, and persist-credentials: false for actions/checkout@v4, was suggested by zizmor, which @Biswa96 showed me.

@Grimler91 Grimler91 requested a review from TomJo2000 as a code owner December 11, 2024 20:10
@Grimler91 Grimler91 force-pushed the CI-hardening branch 3 times, most recently from e1e3639 to 7d7ff62 Compare December 14, 2024 13:05
persist-credentials=false prevents ssh authentication being available
during the job. When we use git we have GITHUB_TOKEN set, so we should
not need the auth setup by checkout script.
All variables that can be controlled by an attacker and that are
expanded in the scripts can be a risk.
@Grimler91 Grimler91 merged commit 7d7ff62 into termux:master Dec 14, 2024
1 check passed
@Grimler91 Grimler91 deleted the CI-hardening branch December 14, 2024 13:06
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.

1 participant