Skip to content

.github: Add Scorecard workflow #64

.github: Add Scorecard workflow

.github: Add Scorecard workflow #64

Workflow file for this run

#############################################################################
# Copyright (c) 2022 Cisco and/or its affiliates.
# 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: Very job for Android
on:
pull_request:
types:
- opened
- synchronize
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
Verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: "${{ github.event.pull_request.head.ref }}"
repository: "${{ github.event.pull_request.head.repo.full_name}}"
fetch-depth: 0
- name: Capture commit id
id: capture
run: |
COMMIT_ID="$(git rev-parse "${{ github.head_ref }}")"
echo "The sha of the starting commit is $COMMIT_ID"
echo "::set-output name=commit::$COMMIT_ID"
- name: Check commits
uses: manang/[email protected]
- name: Verify
uses: elgohr/Publish-Docker-Github-Action@v5
env:
BASE_IMAGE: ghcr.io/${{github.repository}}/android-hicn:latest
GITHUB_USERNAME: ${{ github.actor }}
GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
with:
name: ${{github.repository}}/android-verify
username: ${{ env.GITHUB_USERNAME }}
password: ${{ env.GITHUB_PASSWORD }}
registry: ghcr.io
dockerfile: android/ci/Dockerfile_verify
buildargs: BASE_IMAGE
no_push: true
context: android