Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/publiccodeyml-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Validate publiccode.yml

on:
push:
paths:
- "publiccode.yml"
- ".github/workflows/publiccode.yml"
pull_request:
paths:
- "publiccode.yml"
- ".github/workflows/publiccode.yml"

permissions: {}

jobs:
validate:
runs-on: ubuntu-latest
permissions:
contents: read
name: publiccode.yml validation
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5

- uses: italia/publiccode-parser-action@56e1200cba853b1efa73ee871600284d0705ab4d # v1

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running random actions I have no control over, no thanks. :-)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the core publiccode.yml validator, and it's pinned to a specific commit exactly so you control which code runs.

The library behind it (publiccode-parser-go) has:

  • reproducible builds, verified in CI
  • SLSA build provenance attestations on releases
  • SBOM published with every release
  • every CI action pinned to a commit SHA
  • dependency review on PRs + govulncheck
  • zizmor linting the workflows themselves

Your call if you don't consider that's enough, of course, it would have caught the publiccode.yml that's been invalid in this repo for the past 15 months. :-)

with:
publiccode: "publiccode.yml"
no-network: true
5 changes: 4 additions & 1 deletion publiccode.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
publiccodeYmlVersion: 0.4.0
publiccodeYmlVersion: '0'
name: clixon-pyapi
applicationSuite: Clixon
url: https://github.com/clicon/clixon-pyapi
Expand Down Expand Up @@ -26,6 +26,9 @@ legal:
license: Apache-2.0
maintenance:
type: community
contacts:
# TODO: add at least one contact (name plus email or affiliation)
- name: TODO

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was not sure which name to put here

localisation:
localisationReady: false
availableLanguages:
Expand Down