Skip to content

Commit

Permalink
feat: enhance GitHub workflows with build provenance and linter permi…
Browse files Browse the repository at this point in the history
…ssions; add Dependabot configuration
  • Loading branch information
MasterLaplace committed Nov 8, 2024
1 parent ea1bb21 commit 7026c57
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "sunday"
time: "16:00"

- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "weekly"
day: "sunday"
time: "16:00"
10 changes: 10 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:

permissions:
contents: write
id-token: write
attestations: write
security-events: write

jobs:
bump_version_and_create_release:
Expand All @@ -31,6 +34,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 }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- 'ga-ignore-**'
- 'gh-pages'

permissions:
contents: write

jobs:
lint_code:
name: Lint with clang-format
Expand Down

0 comments on commit 7026c57

Please sign in to comment.