Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
2ea72a2
adding SLSA verification : Building pure Python packages (build.yaml)…
Mar 11, 2024
21028f3
Update build.yaml with merge jobs
Ataxii Mar 12, 2024
6f222a4
Delete .github/workflows/provenance.yaml
Ataxii Mar 12, 2024
c44b1e6
Delete .github/workflows/publish.yaml
Ataxii Mar 12, 2024
a844529
Update build.yaml
Ataxii Mar 12, 2024
d903ad4
Update build.yaml
Ataxii Mar 12, 2024
a321bbc
Update build.yaml
Ataxii Mar 12, 2024
de38986
Update build.yaml
Ataxii Mar 12, 2024
3c98eb9
Update build.yaml
Ataxii Mar 12, 2024
2cda899
Update build.yaml
Ataxii Mar 12, 2024
4bb49ea
Update build.yaml
Ataxii Mar 12, 2024
ff3ab95
Update build.yaml
Ataxii Mar 12, 2024
fcd9b41
Update build.yaml
Ataxii Mar 12, 2024
0aba89f
Update build.yaml
Ataxii Mar 12, 2024
bbe2bf3
Update build.yaml
Ataxii Mar 12, 2024
9101d7a
Update build.yaml
Ataxii Mar 12, 2024
773eaa5
add init for script
Ataxii Mar 12, 2024
6555f31
modif setup.py
Ataxii Mar 12, 2024
2bd3b32
add version.json for setutools
Ataxii Mar 12, 2024
8159d73
Update setup.py
Ataxii Mar 12, 2024
6b413ef
build work
Ataxii Mar 12, 2024
74508bc
Merge branch 'test' of https://github.com/Ataxii/TaskWeaver into test
Ataxii Mar 12, 2024
39620cc
Update build.yaml
Ataxii Mar 13, 2024
1affa17
Update build.yaml
Ataxii Mar 13, 2024
0d8fbfc
Update build.yaml
Ataxii Mar 13, 2024
58be17f
Update build.yaml
Ataxii Mar 13, 2024
8384e7e
Update build.yaml
Ataxii Mar 13, 2024
c4e03d9
Update build.yaml
Ataxii Mar 13, 2024
4769eee
Update build.yaml
Ataxii Mar 13, 2024
cf759a6
Update build.yaml
Ataxii Mar 13, 2024
db4cfaf
Update build.yaml
Ataxii Mar 13, 2024
089077e
Update build.yaml
Ataxii Mar 13, 2024
6ac0c10
Update build.yaml
Ataxii Mar 13, 2024
58cd766
Create codeql.yml
Ataxii Mar 14, 2024
0b4111f
Update build.yaml
Ataxii Mar 14, 2024
325f07d
Add SBOM generator to build.YAML
Mar 16, 2024
e6ffbb3
correction et ajout d'un fichier YAML pour le SBOM uniquement
Mar 16, 2024
e67a54f
mini correctif YAML SBOM
Mar 16, 2024
e23236f
test d'ajout de xml en artefact
Mar 16, 2024
54e98dc
Update .github/workflows/SBOM.yaml
Ataxii Apr 2, 2024
deb4f6b
Update .github/workflows/SBOM.yaml
Ataxii Apr 2, 2024
2de928d
Update .github/workflows/SBOM.yaml
Ataxii Apr 2, 2024
6c70d2c
Update .github/workflows/SBOM.yaml
Ataxii Apr 2, 2024
92b6951
Update .github/workflows/SBOM.yaml
Ataxii Apr 2, 2024
e9948ea
Update .github/workflows/build.yaml
Ataxii Apr 2, 2024
d7ab255
Update .github/workflows/build.yaml
Ataxii Apr 2, 2024
990a002
Rename SBOM.yaml to sbom.yaml
Ataxii Apr 2, 2024
8c1d7e1
Update build.yaml
Ataxii Apr 2, 2024
f2242d2
Update build.yaml
Ataxii Apr 2, 2024
b6e513c
merge sbom.yaml and build.yaml
Ataxii Apr 2, 2024
9d5f9ba
Delete .github/workflows/sbom.yaml
Ataxii Apr 2, 2024
def4ec8
Update build.yaml
Ataxii Apr 2, 2024
e15e82d
Update .github/workflows/build.yaml
Ataxii Apr 2, 2024
0506658
Update build.yaml
Ataxii Apr 2, 2024
b304a28
Update .github/workflows/build.yaml
Ataxii Apr 7, 2024
b2cb709
Update .github/workflows/build.yaml
Ataxii Apr 7, 2024
d8bece6
Update .github/workflows/build.yaml
Ataxii Apr 7, 2024
1f7eae5
Update .github/workflows/build.yaml
Ataxii Apr 7, 2024
b08183d
Update .github/workflows/build.yaml
Ataxii Apr 7, 2024
757fc55
Update .github/workflows/build.yaml
Ataxii Apr 7, 2024
152b5d1
Fix latest changes
yilmi Apr 7, 2024
5908b20
Generate hashes separately
yilmi Apr 7, 2024
235beda
Merge and simplify
yilmi Apr 7, 2024
b0d1f1e
Try softprops action-gh-release
yilmi Apr 7, 2024
049db6f
clean-up
yilmi Apr 7, 2024
62d53b6
Pass filelist to softprops/action-gh-release
yilmi Apr 7, 2024
becebd2
Fix filelist
yilmi Apr 7, 2024
11aa94f
Remove PyPI
yilmi Apr 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Build for SLSA
on:
release:
types: [published]

jobs:
build:
runs-on: "ubuntu-latest"
outputs:
hashes: ${{ steps.hash.outputs.hashes }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Build Wheel and Generate checksum
id: build
run: |
pip install build
python -m pip install -r requirements.txt
python -m build
- name: Generate Python SBOM
id: sbom-json
uses: CycloneDX/gh-python-generate-sbom@v2
with:
input: ./requirements.txt
output: dist/generated_bom.json
format: json # output format (json)
- name: Generate Python SBOM
id: sbom-xml
uses: CycloneDX/gh-python-generate-sbom@v2
with:
input: ./requirements.txt
output: dist/generated_bom.xml
format: json # output format (xml)
- name: Generate subject
id: hash
run: |
cd dist
HASHES=$(sha256sum * | base64 -w0)
echo "hashes=$HASHES" >> "$GITHUB_OUTPUT"
- uses: actions/upload-artifact@v4
name: release
with:
path: dist/


provenance:
needs: [build]
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.10.0
permissions:
actions: read
id-token: write
contents: write
with:
base64-subjects: ${{ needs.build.outputs.hashes }}


publish:
needs: ["provenance"]
permissions:
contents: write
runs-on: "ubuntu-latest"
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: dist
- name: Generate list of files to upload
id: filelist
run: |
echo "list<<EOF" >> "$GITHUB_OUTPUT"
find dist/ -type f >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"
- name: Release
uses: softprops/action-gh-release@v2.0.4
with:
files: ${{ steps.filelist.outputs.list }}


Empty file added scripts/__init__.py
Empty file.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def revert():
package_data={
"taskweaver.planner": ["*"], # prompt
"taskweaver.code_interpreter.code_generator": ["*"], # prompt
"taskweaver": ["../*"], # version
},
entry_points={
"console_scripts": ["taskweaver=taskweaver.__main__:main"],
Expand Down