Skip to content

added demo report

added demo report #9

Workflow file for this run

# Copyright 2020 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.
name: Show current gcloud auth
on: [push]
jobs:
show-auth:
name: Show gcloud auth
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'
- name: 'Use gcloud CLI'
run: 'gcloud info'
- name: Run the Giskard report 🐢
id: giskard_scan
run: |
python report.py
output=$(find report -iname "*.md" -exec basename {} .md ';')
echo "::set-output name=report_name::$output"
- name: Extract branch name 🌲
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Upload the report 🤖
id: extract_sha
run: |
git config user.name github-actions
git config user.email [email protected]
mkdir -p reports
cp ${{ steps.giskard_scan.outputs.report_name }} reports/.
cp reports/${{ steps.giskard_scan.outputs.report_name }} reports/latest.md
git add reports
git commit -m "🤖 github-bot: Updated Reports"
git push
echo "::set-output name=sha::$(git rev-parse HEAD)"