feature: add user cluster create with terraform sample (manuallb) (#594) #486
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 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. | |
name: Scorecards supply-chain security | |
on: | |
# Only the default branch is supported. | |
branch_protection_rule: | |
schedule: | |
- cron: '32 17 * * 1' | |
push: | |
branches: [ main ] | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
analysis: | |
name: Scorecards analysis | |
runs-on: ubuntu-latest | |
permissions: | |
# Needed to upload the results to code-scanning dashboard. | |
security-events: write | |
actions: read | |
contents: read | |
steps: | |
- name: "Checkout code" | |
uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5 | |
with: | |
persist-credentials: false | |
- name: "Run analysis" | |
uses: ossf/scorecard-action@fc268b13a8e514322ba05e124eb75f88ac3a1b51 | |
with: | |
results_file: results.sarif | |
results_format: sarif | |
# Read-only PAT token. To create it, | |
# follow the steps in https://github.com/ossf/scorecard-action#pat-token-creation. | |
repo_token: ${{ secrets.SCORECARD_READ_TOKEN }} | |
# Publish the results to enable scorecard badges. For more details, see | |
# https://github.com/ossf/scorecard-action#publishing-results. | |
# For private repositories, `publish_results` will automatically be set to `false`, | |
# regardless of the value entered here. | |
publish_results: true | |
# Upload the results as artifacts (optional). | |
- name: "Upload artifact" | |
uses: actions/upload-artifact@65d862660abb392b8c4a3d1195a2108db131dd05 | |
with: | |
name: SARIF file | |
path: results.sarif | |
retention-days: 5 | |
# Upload the results to GitHub's code scanning dashboard. | |
- name: "Upload to code-scanning" | |
uses: github/codeql-action/upload-sarif@d0dd7d77b4e5a2ac9284ddbc45e6eeb88fbd961a | |
with: | |
sarif_file: results.sarif |