Skip to content

Commit a99157e

Browse files
codebydivineclaude
andcommitted
bump: Version 0.1.7
Fix security job permissions conflict in reusable CI workflow. This version should successfully auto-publish to PyPI. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent b317c1e commit a99157e

File tree

3 files changed

+35
-24
lines changed

3 files changed

+35
-24
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -97,29 +97,6 @@ jobs:
9797
mypy src/thegraph_token_api --ignore-missing-imports
9898
continue-on-error: true
9999

100-
security:
101-
runs-on: ubuntu-latest
102-
if: github.event_name != 'workflow_call'
103-
permissions:
104-
security-events: write
105-
contents: read
106-
steps:
107-
- uses: actions/checkout@v4
108-
109-
- name: Run Trivy vulnerability scanner
110-
uses: aquasecurity/trivy-action@master
111-
with:
112-
scan-type: 'fs'
113-
scan-ref: '.'
114-
format: 'sarif'
115-
output: 'trivy-results.sarif'
116-
severity: 'CRITICAL,HIGH'
117-
118-
- name: Upload Trivy scan results to GitHub Security tab
119-
uses: github/codeql-action/upload-sarif@v3
120-
if: always()
121-
with:
122-
sarif_file: 'trivy-results.sarif'
123100

124101
build:
125102
runs-on: ubuntu-latest

.github/workflows/security.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Security
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
branches: [ main, develop ]
8+
schedule:
9+
# Run security scan daily at 2 AM UTC
10+
- cron: '0 2 * * *'
11+
12+
jobs:
13+
security:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
security-events: write
17+
contents: read
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Run Trivy vulnerability scanner
22+
uses: aquasecurity/trivy-action@master
23+
with:
24+
scan-type: 'fs'
25+
scan-ref: '.'
26+
format: 'sarif'
27+
output: 'trivy-results.sarif'
28+
severity: 'CRITICAL,HIGH'
29+
30+
- name: Upload Trivy scan results to GitHub Security tab
31+
uses: github/codeql-action/upload-sarif@v3
32+
if: always()
33+
with:
34+
sarif_file: 'trivy-results.sarif'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "divine-thegraph-token-api"
7-
version = "0.1.6"
7+
version = "0.1.7"
88
authors = [
99
{ name="DIVINE", email="[email protected]" },
1010
]

0 commit comments

Comments
 (0)