diff --git a/infra/presubmit.py b/infra/presubmit.py index e09f84958..c394eafa3 100755 --- a/infra/presubmit.py +++ b/infra/presubmit.py @@ -100,6 +100,7 @@ class ProjectYamlChecker: 'selective_unpack', 'vendor_ccs', 'view_restrictions', + 'file_github_issue', ] # Note that some projects like boost only have auto-ccs. However, forgetting diff --git a/projects/github_scarecrow/Dockerfile b/projects/github_scarecrow/Dockerfile new file mode 100644 index 000000000..8fba92bc2 --- /dev/null +++ b/projects/github_scarecrow/Dockerfile @@ -0,0 +1,21 @@ +# Copyright 2022 Google LLC. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +FROM gcr.io/oss-fuzz-base/base-builder + +RUN git clone --depth 1 https://github.com/Alan32Liu/github-scarecrow.git $SRC/github-scarecrow +WORKDIR $SRC/github-scarecrow +COPY build.sh $SRC/ diff --git a/projects/github_scarecrow/build.sh b/projects/github_scarecrow/build.sh new file mode 100644 index 000000000..a459c19d1 --- /dev/null +++ b/projects/github_scarecrow/build.sh @@ -0,0 +1,20 @@ +#!/bin/bash -eu +# Copyright 2022 Google LLC. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +$CXX $CXXFLAGS -std=c++11 -Ilib/ \ + $SRC/github-scarecrow/scarecrow.cc -o $OUT/scarecrow \ + $LIB_FUZZING_ENGINE diff --git a/projects/github_scarecrow/project.yaml b/projects/github_scarecrow/project.yaml new file mode 100644 index 000000000..fa078d6c8 --- /dev/null +++ b/projects/github_scarecrow/project.yaml @@ -0,0 +1,7 @@ +homepage: 'https://github.com/Alan32Liu/github-scarecrow' +primary_contact: 'donggeliu@google.com' +language: c++ +sanitizers: + - address +main_repo: 'https://github.com/Alan32Liu/github-scarecrow' +file_github_issue: True