Skip to main content

Pin used actions and analyse transitive dependencies of GitHub workflows / actions

Project description

PyPI PyPI - Python Versions EPLv2 License Build Status on GitHub Documentation Status
OpenSSF Scorecard OpenSSF SLSA Level 3

Eclipse Octopin

Analyses and pins GitHub actions in your workflows.

This tool pins your GitHub Action versions to use the SHA-1 hash instead of tag to improve security as Git tags are not immutable.

Converts uses: aws-actions/configure-aws-credentials@v1.7.0 to uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838 # v1.7.0

Skipping actions

To skip a specific action from being pinned, you can add a comment pinning: ignore.

Example using the generic SLSA generator action which MUST be referenced by a tag rather than a commit hash:

provenance:
    needs: ['prepare', 'build-dist']
    permissions:
      actions: read
      contents: write
      id-token: write # Needed to access the workflow's OIDC identity.
    uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.1.0 # pinning: ignore
    with:
      base64-subjects: "${{ needs.build-dist.outputs.hashes }}"
      upload-assets: true

pre-commit hook

This repo provides a pre-commit hook to run octopin pin. Add the following snippet to your .pre-commit-config.yaml to use.

- repo: https://github.com/eclipse-csi/octopin
  rev: main  # Recommended to pin to a tagged released
  hooks:
  - id: pin-versions

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

octopin-0.1.4.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

octopin-0.1.4-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file octopin-0.1.4.tar.gz.

File metadata

  • Download URL: octopin-0.1.4.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for octopin-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a502c3cc6ee7241667a7bc9eb190ea8a3fe1be318e98cf2bd1551c5872bdb0eb
MD5 a8409d0c84d4285ba678f606f2858e8c
BLAKE2b-256 c8a09e97cb12a6e6ea195d2993d9ec92ef1e3c28d2c4bb3e5b910b9ac8960407

See more details on using hashes here.

Provenance

The following attestation bundles were made for octopin-0.1.4.tar.gz:

Publisher: publish.yml on eclipse-csi/octopin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file octopin-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: octopin-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for octopin-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 55ca720bb50086e3387abf03d9b310c9231cca944ccacf21233fddec46a44518
MD5 3e6d3d0ae25e8488be1adf34b6ed7797
BLAKE2b-256 ade623221b658a3d7a65c0a315ef7714f5c8e465a1b9dba112aa00ae90e055b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for octopin-0.1.4-py3-none-any.whl:

Publisher: publish.yml on eclipse-csi/octopin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page