Concourse Resource Type for Debian Security Announcements
Find a file
Jan Dittberner 63b77842cf Update README
- update input and output examples
- add license text
2023-01-22 13:23:27 +01:00
cmd/debian-dsa Initial release 2023-01-21 15:10:30 +01:00
internal/resource/dsa Use correct long description from DSA long RDF 2023-01-22 13:18:57 +01:00
.gitignore Initial release 2023-01-21 15:10:30 +01:00
COPYING Initial release 2023-01-21 15:10:30 +01:00
debian-dsa Initial release 2023-01-21 15:10:30 +01:00
Dockerfile Use correct long description from DSA long RDF 2023-01-22 13:18:57 +01:00
go.mod Use correct long description from DSA long RDF 2023-01-22 13:18:57 +01:00
go.sum Use correct long description from DSA long RDF 2023-01-22 13:18:57 +01:00
Makefile Initial release 2023-01-21 15:10:30 +01:00
README.md Update README 2023-01-22 13:23:27 +01:00

Concourse Resource Type for Debian Security Announcements

This Concourse CI resource type checks the Debian Security Announcements and reports the latest security announcements this can be used to trigger registry-image or docker-image builds when security updates are released.

The source code for the resource type is available at https://git.dittberner.info/jan/concourse-dsa-resource

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Usage

To use the resource type in your own Concourse pipeline you will have to define the resource type and a resource:

---
resource_types:
- name: debian-dsa
  type: registry-image
  source:
    repository: jandd/concourse-dsa-resource
    tag: latest

resources:
- name: debian-dsa-version
  type: debian-dsa
  source: {}

jobs:
- name: security-update
  plan:
  - get: debian-dsa-version
    trigger: true

The resource type supports the check and in operations.

check operation

The check operations returns a list of versions consisting of an ISO date and the title of the available update. A shortened and pretty-printed example output looks like this:

  • Input

    {}
    
  • Output

    [
      {
        "date": "2023-01-18",
        "title": "DSA-5322"
      },
      {
        "date": "2023-01-19",
        "title": "DSA-5323"
      }
    ]
    

in operation

The in operation takes a version as described in Concourse's resource type implementation documentation and returns metadata. If the version exists. The following input example returns the output below:

  • Input

    {
      "source": {},
      "params": {},
      "version": {
        "date": "2023-01-18",
        "title": "DSA-5322"
      }
    }
    
  • Output

    {
      "version": {
        "date": "2023-01-18",
        "dsa": "DSA-5322"
      },
      "metadata": {
        "link": "https://www.debian.org/security/2023/dsa-5322",
        "package": "firefox-esr",
        "description": "Multiple security issues have been found in the Mozilla Firefox web\nbrowser, which could potentially result in the execution of arbitrary\ncode, information disclosure or spoofing."
      }
    }