feat: add config validation #176
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2023 cluetec GmbH | |
# | |
# 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. | |
name: Greetings | |
on: | |
- pull_request_target | |
- issues | |
permissions: # added using https://github.com/step-security/secure-repo | |
contents: read | |
jobs: | |
greeting: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write # for actions/first-interaction to comment on first issue | |
pull-requests: write # for actions/first-interaction to comment on first PR | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 | |
with: | |
allowed-endpoints: > | |
api.github.com:443 | |
disable-sudo: true | |
disable-telemetry: true | |
egress-policy: block | |
- uses: actions/first-interaction@34f15e814fe48ac9312ccf29db4e74fa767cbab7 # v1.3.0 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
issue-message: "Thank you for your contribution 🔥 We will look into this as soon as possible 🚀\n\n In the meantime, we recommend every new contributor to take a look at the [Contributor Guide](https://github.com/cluetec/lifeboat/CONTRIBUTING.md)." | |
pr-message: "Thank you for your contribution 🔥 We will look into this as soon as possible 🚀\n\n In the meantime, we recommend every new contributor to take a look at the [Contributor Guide](https://github.com/cluetec/lifeboat/CONTRIBUTING.md)." |