mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-20 09:36:47 +00:00
chore: created local '.github/workflows/ossf-scorecard.yml' from remote 'tools/sre_file_sync/ossf-scorecard.yml'
This commit is contained in:
parent
21033d7351
commit
884bf3a797
1 changed files with 47 additions and 0 deletions
47
.github/workflows/ossf-scorecard.yml
vendored
Normal file
47
.github/workflows/ossf-scorecard.yml
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
name: Scorecards supply-chain security
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
# Weekly on Saturdays.
|
||||
- cron: "30 1 * * 6"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
analysis:
|
||||
name: Scorecards analysis
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- name: "Checkout code"
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: "Run analysis"
|
||||
uses: ossf/scorecard-action@fdeb02dc9c3fb721c82a431b2708514aca13dbeb
|
||||
with:
|
||||
results_file: ossf-results.json
|
||||
results_format: json
|
||||
publish_results: false
|
||||
|
||||
- name: "Add metadata"
|
||||
run: |
|
||||
full_repo="${{ github.repository }}"
|
||||
OWNER=${full_repo%/*}
|
||||
REPO=${full_repo#*/}
|
||||
jq -c '. + {"metadata_owner": "'$OWNER'", "metadata_repo": "'$REPO'", "metadata_query": "ossf"}' ossf-results.json > ossf-results-modified.json
|
||||
|
||||
- name: "Post results to Sentinel"
|
||||
uses: cds-snc/sentinel-forward-data-action@main
|
||||
with:
|
||||
file_name: ossf-results-modified.json
|
||||
log_type: GitHubMetadata_OSSF_Scorecard
|
||||
log_analytics_workspace_id: ${{ secrets.LOG_ANALYTICS_WORKSPACE_ID }}
|
||||
log_analytics_workspace_key: ${{ secrets.LOG_ANALYTICS_WORKSPACE_KEY }}
|
Loading…
Add table
Add a link
Reference in a new issue