SKY-D307 · CI/CD pipelines
Workflow or action without a name
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
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
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 testWhat Skylos leaves alone
name: Set up the Acme CLIdescription: Installs a pinned version of the Acme CLI.runs: using: composite steps: - run: ./install.sh shell: bashWhy 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
- Reads workflow files under
.github/workflowsandaction.yml/action.yamlfiles anywhere in the scan. - Reports the file when its top level has no
namekey. Any value counts, even an empty one. Job and step names are not checked. - One LOW finding on line 1.
How to fix it
Add a short name: that says what the workflow does.
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 testWhen 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.