Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
104 changes: 0 additions & 104 deletions .github/workflows/_build-reusable.yml

This file was deleted.

13 changes: 5 additions & 8 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,15 @@ permissions:
contents: read

jobs:
analyze:
name: Analyze (${{ matrix.language }})
# CONTRACT: org ruleset requires this exact check name 'codeql'
# Do NOT add a 'name:' override or matrix strategy
codeql:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
actions: read
security-events: write
contents: read
strategy:
fail-fast: false
matrix:
language: ["python"]

steps:
- name: Harden runner
Expand All @@ -40,7 +37,7 @@ jobs:
- name: Initialize CodeQL
uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
with:
languages: ${{ matrix.language }}
languages: python
queries: +security-extended

- name: Autobuild
Expand All @@ -49,4 +46,4 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
with:
category: "/language:${{ matrix.language }}"
category: "/language:python"
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ permissions: {}

jobs:
build:
uses: ./.github/workflows/_build-reusable.yml
uses: Project-Navi/.github/.github/workflows/_build-reusable.yml@6c4c2d8f200b1b9c3bd651ebc297425e45d5934e
with:
tag_name: ${{ github.event.release.tag_name }}
package_name: grippy
permissions:
contents: write
id-token: write
Expand Down
31 changes: 4 additions & 27 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,19 @@ concurrency:
cancel-in-progress: false

jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
timeout-minutes: 15
scorecard:
uses: Project-Navi/.github/.github/workflows/scorecard.yml@6c4c2d8f200b1b9c3bd651ebc297425e45d5934e
permissions:
contents: read
security-events: write
id-token: write
actions: read
steps:
- name: Harden runner
uses: step-security/harden-runner@58077d3c7e43986b6b15fba718e8ea69e387dfcc # v2.15.1
with:
egress-policy: audit

- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
token: ${{ secrets.SCORECARD_TOKEN || secrets.GITHUB_TOKEN }}

- name: Run Scorecard
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
with:
repo_token: ${{ secrets.SCORECARD_TOKEN || secrets.GITHUB_TOKEN }}
results_file: results.sarif
results_format: sarif
publish_results: true

- name: Upload SARIF to Security tab
uses: github/codeql-action/upload-sarif@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
with:
sarif_file: results.sarif
secrets: inherit

badge:
name: Update scorecard badge
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
needs: analysis
needs: scorecard
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
Expand Down
Loading
Loading