Skip to content

Commit

Permalink
Merge pull request #38 from creative-commoners/pulls/1/update-readme
Browse files Browse the repository at this point in the history
Update readme to reflect v1.0 milestone changes
  • Loading branch information
robbieaverill authored Jun 7, 2018
2 parents 00839f3 + ee42763 commit 38ebb03
Showing 1 changed file with 20 additions and 29 deletions.
49 changes: 20 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,36 @@
# [SilverStripe composer security checker](https://github.com/bringyourownideas/silverstripe-composer-security-checker) <br /> [![Build Status](https://api.travis-ci.org/bringyourownideas/silverstripe-composer-security-checker.svg?branch=master)](https://travis-ci.org/bringyourownideas/silverstripe-composer-security-checker) [![Latest Stable Version](https://poser.pugx.org/bringyourownideas/silverstripe-composer-security-checker/version.svg)](https://github.com/bringyourownideas/silverstripe-composer-security-checker/releases) [![Latest Unstable Version](https://poser.pugx.org/bringyourownideas/silverstripe-composer-security-checker/v/unstable.svg)](https://packagist.org/packages/bringyourownideas/silverstripe-composer-security-checker) [![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/bringyourownideas/silverstripe-composer-security-checker.svg)](https://scrutinizer-ci.com/g/bringyourownideas/silverstripe-composer-security-checker?branch=master) [![Total Downloads](https://poser.pugx.org/bringyourownideas/silverstripe-composer-security-checker/downloads.svg)](https://packagist.org/packages/bringyourownideas/silverstripe-composer-security-checker) [![License](https://poser.pugx.org/bringyourownideas/silverstripe-composer-security-checker/license.svg)](https://github.com/bringyourownideas/silverstripe-composer-security-checker/blob/master/license.md)
# SilverStripe Security Checker

Adds a task which runs a check if any of the dependencies has known security vulnerabilities. It uses the
[SensioLabs Security Check Web service][1] and the [Security Advisories Database][2].
[![Build Status](https://api.travis-ci.org/bringyourownideas/silverstripe-composer-security-checker.svg?branch=master)](https://travis-ci.org/bringyourownideas/silverstripe-composer-security-checker)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/bringyourownideas/silverstripe-composer-security-checker/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/bringyourownideas/silverstripe-composer-security-checker/?branch=master)
[![codecov](https://codecov.io/gh/bringyourownideas/silverstripe-composer-security-checker/branch/master/graph/badge.svg)](https://codecov.io/gh/bringyourownideas/silverstripe-composer-security-checker)

The information is displayed using the [SilverStripe Maintenance module](https://github.com/bringyourownideas/silverstripe-maintenance "supports you with the maintainence of your SilverStripe project").
Adds a task which runs a check if any of the dependencies has known security vulnerabilities. It uses the
[SensioLabs Security Check Web service](http://security.sensiolabs.org/) and the [Security Advisories Database](https://github.com/FriendsOfPHP/security-advisories).

### Requirements
BSD 3-clause [License](https://github.com/bringyourownideas/silverstripe-composer-security-checker/blob/master/license.md)

* SilverStripe Framework ^3.0
* SilverStripe QueuedJobs *
## Requirements

* SilverStripe Framework ^3
* SilverStripe QueuedJobs ^2

### Installation
### Suggested Module

The following installation commands includes schedulding a queuedjob to populate the data. Run the following command to install this package as a development dependency:
This module will automatically amend the SiteSummary report provided by the [SilverStripe Maintenance module](https://github.com/bringyourownideas/silverstripe-maintenance), adding alerts if security updates are present for installed modules.

```
composer require bringyourownideas/silverstripe-composer-security-checker dev-master --dev
php ./framework/cli-script.php dev/build
php ./framework/cli-script.php dev/tasks/ProcessJobQueueTask
```
## Installation

*or* as general dependency:
The following installation commands includes schedulding a queuedjob to populate the data. Run the following command to install this package as a development dependency:

```
composer require bringyourownideas/silverstripe-composer-security-checker dev-master
php ./framework/cli-script.php dev/build
php ./framework/cli-script.php dev/tasks/ProcessJobQueueTask
./framework/sake dev/build
./framework/sake dev/tasks/ProcessJobQueueTask
```

**Recommendation is to only install this as dev dependency!**


### Usage

The information gets automatically updated via a queuedjob on dev/build. You will need to run the queuedjobs task to get the information.

Use the information in your database (Table "ComposerSecurityVulnerability") as you like. Please be careful how you expose this information.

## Usage

## MISC: [Future ideas/development, issues](https://github.com/bringyourownideas/silverstripe-composer-security-checker/issues), [Contributing](https://github.com/bringyourownideas/silverstripe-composer-security-checker/blob/master/CONTRIBUTING.md), [License](https://github.com/bringyourownideas/silverstripe-composer-security-checker/blob/master/license.md)
The information gets updated via a BuildTask, which in turn can be run via a queuedjob.
You will need to set up a scheduled process (e.g. `cron`) to run either the buildtask directly, or the task to process the queuedjobs queue in order to refresh the information.

[1]: http://security.sensiolabs.org/
[2]: https://github.com/FriendsOfPHP/security-advisories
Use the information is stored in the `SecurityAlert` object, and can be consumed as needed. Please be careful how you expose this information. If the SilverStripe Maintenance module is present, a relationship will be connected between `Package` and `SecurityAlert`.

0 comments on commit 38ebb03

Please sign in to comment.