File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed
Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Allocate Security Identifiers"
2+ on :
3+ workflow_dispatch :
4+ schedule :
5+ - cron : ' 12 * * * MON-FRI'
6+
7+ concurrency :
8+ group : allocate-security-identifiers
9+ cancel-in-progress : true
10+
11+ permissions :
12+ contents : read
13+
14+ jobs :
15+ allocate-security-identifiers :
16+ name : " Allocate Security Identfiers"
17+ runs-on : ubuntu-latest
18+ container :
19+ image : python:3.13-alpine
20+ permissions :
21+ contents : write
22+ steps :
23+ - name : Install OS dependencies
24+ run : apk add --no-cache taplo sqlite tar zstd curl oras-cli bash date
25+ - name : Configure git
26+ run : git config --global --add safe.directory "$GITHUB_WORKSPACE"
27+ - name : Install python dependencies
28+ run : pip install check-jsonschema cpe git+https://github.com/anchore/security-cli
29+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
30+ - name : Allocate security identifiers
31+ run : anchore-security-cli id allocate --data-path data
32+ - name : Run TOML schema validation
33+ run : taplo validate --schema file:${PWD}/schema/0.1.0.schema.json
34+ - name : Run TOML formatting validation
35+ run : taplo format --check
36+ - name : Commit changes
37+ run : |
38+ git config user.email "github-actions[bot]@users.noreply.github.com"
39+ git config user.name "github-actions[bot]"
40+ ./scripts/commit.sh
41+ git push
Original file line number Diff line number Diff line change 1+ #! /bin/bash -l
2+
3+ git add .
4+ date=$( date -I)
5+ git diff-index --quiet HEAD || git commit --message " allocate security identifiers: ${date} "
You can’t perform that action at this time.
0 commit comments