Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Security Advisories Checker on Travis/Circle CI

Security Advisories Checker on Travis/Circle CI

Ryo Shibayama

January 13, 2016
Tweet

More Decks by Ryo Shibayama

Other Decks in Technology

Transcript

  1. @serima • PHP Developer @ Zappallas • mag2 -> GREE

    -> Zappallas • http://serima.co/blog • Recent topics • WordPress on PHP 7, HTTP/2 • Setup Sakura-VPS with Ansible • ࠷ۙͷڵຯ • ೋࢎԽ୸ૉೱ౓ͷܭଌʢ·ͩ΍ͬͯͳ͍ʂʣ
  2. SensioLabs • Symfony / Twig / Silex ͳͲΛ։ൃ͍ͯ͠Δϑϥϯεͷ ձࣾ •

    ࠷ۙͩͱɺϓϩϑΝΠϥπʔϧ blackfire.io ΛϦϦʔε ͨ͠
  3. composer.lock Ͱ൑ఆ • Online Checker • ΢Σϒ্Ͱ composer.lock ΛΞοϓϩʔυ •

    CLI Checker • CLI Tool Λμ΢ϯϩʔυͯ͠ίϚϯυϥΠϯ࣮ߦ • Web API • SensioLabs ্ʹΤϯυϙΠϯτ͕༻ҙ͞Ε͍ͯΔ
  4. How to integrate • composer require sensiolabs/security-checker • composer update

    • git add composer.json composer.lock • git commit -m ‘Integrate security-checker’
  5. TravisCI - .travis.yml language: php php: - 5.6 before_script: -

    composer self-update - composer install - chmod -R 777 storage script: - vendor/bin/security-checker security:check - phpunit
  6. CircleCI - circle.yml machine: timezone: Asia/Tokyo php: version: 5.6.14 test:

    override: - vendor/bin/security-checker security:check - vendor/bin/phpunit
  7. ੬ऑੑσʔλϕʔε • ͜ͷϦϙδτϦʹొ࿥͞Ε͍ͯΔ΋ͷ͕੬ऑੑσʔλϕʔ εͱͯ͠࢖ΘΕ͍ͯΔ • https://github.com/FriendsOfPHP/security- advisories • This database

    must not serve as the primary source of information for security issues, it is not authoritative for any referenced software, but it allows to centralize information for convenience and easy consumption.