Skip to content

Commit d11be03

Browse files
authored
Merge pull request #798 from fryingfan/patch-1
Add Canadian Centre for Cyber Security
2 parents 28c9b5a + cef1c7c commit d11be03

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Rakefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@ require 'html-proofer'
44

55
task :test do
66
sh 'bundle exec jekyll build'
7-
HTMLProofer.check_directory('./_site/', check_html: true).run
7+
HTMLProofer.check_directory('./_site/',
8+
check_html: true,
9+
hydra: { max_concurrency: 10 },
10+
http_status_ignore: [429]).run
811
end

_data/governments.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,10 @@ Canada:
117117
- CityofEdmonton
118118
- cityssm
119119
- cngo
120-
- communicationssecurityestablishment
120+
- CommunicationSecurityEstablishment
121121
- csbp-cpse
122122
- CSPS-EFPC-DAAN
123+
- CybercentreCanada
123124
- ECCC-MSC
124125
- electionsquebec
125126
- esdc-devx
@@ -469,9 +470,9 @@ Sweden:
469470
- riksantikvarieambetet
470471
- riksarkivet
471472
- rinfo
472-
- RISE-SICS
473473
- sambruk
474474
- SciLifeLab
475+
- SICS
475476
- skolverket
476477
- smhi
477478
- SodertornHB

script/ensure-orgs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Typhoeus::Config.cache = Cache.new
2727
# We'd constantly hit any rate limit as each needs to be its own query
2828
def org?(user)
2929
response = Typhoeus.head "https://github.com/orgs/#{user}/people", accept_encoding: 'gzip'
30-
response.success?
30+
response.success? || response.response_code == 429
3131
end
3232

3333
puts 'Checking that all orgs listed are in fact, an org...'

0 commit comments

Comments
 (0)