Skip to main content

SKY-D307 · CI/CD pipelines

Workflow or action without a name

Low

A workflow file or an action.yml without a top-level name:. GitHub then shows a workflow by its file path, in the Actions tab and in the checks of a pull request. This is a tidiness finding, not a security hole.

Languages
GitHub Actions workflows, composite actions
Quality gate
counted toward the gate limits (full and diff scans)
Finding type
review
Catalog name
GitHub Actions anonymous definition
Wrong result? Report itA false positive, a missed case or a confusing message: it goes privately to the founder.

Why it matters

Reviewers and auditors find runs and checks by name. Unnamed workflows make it harder to see at a glance which pipeline ran, failed or was skipped, and GitHub's metadata syntax lists name as required for an action.

What Skylos flags

.github/workflows/test.yml · YAMLReported on line 1
on:  pull_request:  push:    branches: [main]permissions:  contents: readjobs:  test:    runs-on: ubuntu-latest    steps:      - uses: actions/checkout@v4        with:          persist-credentials: false      - run: make test

What Skylos leaves alone

action.yml · YAML
name: Set up the Acme CLIdescription: Installs a pinned version of the Acme CLI.runs:  using: composite  steps:    - run: ./install.sh      shell: bash

Why Skylos leaves it alone

The action has a top-level name:. The rule does not look at job or step names, which this composite action does not have.

How Skylos decides

  1. Reads workflow files under .github/workflows and action.yml / action.yaml files anywhere in the scan.
  2. Reports the file when its top level has no name key. Any value counts, even an empty one. Job and step names are not checked.
  3. One LOW finding on line 1.

How to fix it

Add a short name: that says what the workflow does.

.github/workflows/test.yml · YAML · the fix, against the flagged file
Added: name: Testson:  pull_request:  push:    branches: [main]permissions:  contents: readjobs:  test:    runs-on: ubuntu-latest    steps:      - uses: actions/checkout@v4        with:          persist-credentials: false      - run: make test

When it can be wrong

  • Every unnamed workflow is reported, including small ones whose file name already says enough.

Seeing a case that isn't listed here? Report the wrong result so the rule can be fixed. Don't paste company code: describe the shape of it.

How to silence it

  • Put # skylos: ignore[SKY-D307] on line 1 of the file, the line the finding is on.

    YAML
    # skylos: ignore[SKY-D307] shown by file name on purposeon: push
  • [tool.skylos] ignore = ["SKY-D307"] turns the rule off for the whole project.

  • A baseline works, but it records the absolute file path and the line, so it stops matching when the checkout moves.

From the Skylos rule handbook, Skylos 5.8.0 (commit 5b880b0). All rules.