8000 Bump actions/upload-artifact from 3.2.1 to 4.6.2 (#583) · open-telemetry/opentelemetry-cpp-contrib@260d733 · GitHub
[go: up one dir, main page]

Skip to content

Bump actions/upload-artifact from 3.2.1 to 4.6.2 (#583) #63

Bump actions/upload-artifact from 3.2.1 to 4.6.2 (#583)

Bump actions/upload-artifact from 3.2.1 to 4.6.2 (#583) #63

name: OSSF Scorecard
on:
push:
branches:
- main
schedule:
- cron: "37 0 * * 4" # once a week
workflow_dispatch:
permissions: read-all
jobs:
analysis:
runs-on: ubuntu-latest
permissions:
# Needed for Code scanning upload
security-events: write
# Needed for GitHub OIDC token if publish_results is true
id-token: write
steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.2.2
with:
persist-credentials: false
- uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
with:
results_file: results.sarif
results_format: sarif
publish_results: true
# Upload the results as artifacts (optional). Commenting out will disable
# uploads of run results in SARIF format to the repository Actions tab.
# https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts
- name: "Upload artifact"
uses: actions/upload-artifact@2848b2cda0e5190984587ec6bb1f36730ca78d50 # v3.2.1
with:
name: SARIF file
path: results.sarif
retention-days: 5
# Upload the results to GitHub's code scanning dashboard (optional).
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
with:
sarif_file: results.sarif
0