lincc-frameworks / lincc-frameworks/python-project-template
Change third party github actions to target specific commits rather than tags
Personne n'a encore pris cette issue.
- Langage dominant
- Jinja
- Étoiles
- 85
- Forks
- 16
- Merge moyen
- 6 h 18 min
- PR mergées (30 j)
- 1
Description
We should pin our third party github actions to a specific commit, rather than a tag as we currently do.
This is a cybersecurity measure recommended by GitHub:
The individual jobs in a workflow can interact with (and compromise) other jobs. For example, a job querying the environment variables used by a later job, writing files to a shared directory that a later job processes, or even more directly by interacting with the Docker socket and inspecting other running containers and executing commands in them.
This means that a compromise of a single action within a workflow can be very significant, as that compromised action would have access to all secrets configured on your repository, and may be able to use the GITHUB_TOKEN to write to the repository. Consequently, there is significant risk in sourcing actions from third-party repositories on GitHub. For information on some of the steps an attacker could take, see Secure use reference.
In our workflows, we have some third party actions used like such:
- name: Install uv
uses: astral-sh/setup-uv@v7
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par rechercher dans les fichiers de workflow du dépôt les GitHub Actions tierces, y compris l’exemple astral-sh/setup-uv@v7. Épinglez chaque action tierce sur un commit précis plutôt que sur un tag, puis exécutez les vérifications de workflow disponibles pour confirmer qu’elles réussissent toujours.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- github-actions
- Domaine
- ci-cd, security
- Type d'issue
- Refactorisation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 65/100