-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add build provenance attestation to workflows
- Loading branch information
1 parent
ea1bb21
commit e3041ca
Showing
4 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ on: | |
|
||
permissions: | ||
contents: write | ||
id-token: write | ||
|
||
jobs: | ||
bump_version_and_create_release: | ||
|
@@ -31,6 +32,13 @@ jobs: | |
run: | | ||
python3 Scripts/increment_version.py ${{ steps.test_tag_version.outputs.new_tag }} | ||
- name: Attest Build Provenance | ||
uses: actions/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
subject-name: "Flakkari Version Bump" | ||
subject-path: "Scripts/increment_version.py" | ||
|
||
- name: Set up Git and Push changes | ||
env: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,9 @@ on: | |
milestone: | ||
types: [closed] | ||
|
||
permissions: | ||
id-token: write | ||
|
||
jobs: | ||
generate: | ||
runs-on: ubuntu-latest | ||
|
@@ -33,6 +36,13 @@ jobs: | |
- name: Create .nojekyll file | ||
run: touch docs/html/.nojekyll | ||
|
||
- name: Attest Build Provenance | ||
uses: actions/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
subject-name: "Flakkari Doxygen Documentation" | ||
subject-path: "docs/html" | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v4 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,9 @@ on: | |
- 'ga-ignore-**' | ||
- 'gh-pages' | ||
|
||
permissions: | ||
id-token: write | ||
|
||
jobs: | ||
lint_code: | ||
name: Lint with clang-format | ||
|
@@ -21,6 +24,13 @@ jobs: | |
git ls-files -z "*.cpp" "*.hpp" | while IFS= read -rd '' f; do tail -c1 < "$f" | read -r _ || echo >> "$f"; done | ||
find . -iname '*.hpp' -o -iname '*.cpp' | xargs clang-format -i | ||
- name: Attest Build Provenance | ||
uses: actions/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
subject-name: "Flakkari Linter" | ||
subject-path: "." | ||
|
||
- name: Set up Git and Push changes | ||
env: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters