Skip to content

GitHub Script action not pinned to a full-length commit SHA #169

Description

@dwenzel-infrest

The accessibility-scanner workflow uses actions/github-script@v8 without pinning it to a specific commit SHA. This violates security best practices and causes the pipeline to fail when the Require actions to be pinned to a full-length commit SHA setting is enabled.

Steps to Reproduce

  1. Enable Require actions to be pinned to a full-length commit SHA in the repository settings.
  2. Run the accessibility-scanner workflow.
  3. Observe the failure caused by the unpinned actions/github-script action.

Expected Behavior

The workflow should run successfully with all actions pinned to full-length commit SHAs.

Actual Behavior

The workflow fails because actions/github-script@v8 is not pinned to a commit SHA.

uses: actions/github-script@v8

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions