Skip to content
Closed
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
4 changes: 1 addition & 3 deletions .github/workflows/auto-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ on:
types: [opened, reopened, edited, synchronize]
permissions:
contents: read
pull-requests: write
jobs:
main:
permissions:
contents: read
pull-requests: write
uses: github-community-projects/ospo-reusable-workflows/.github/workflows/auto-labeler.yaml@3b691dff6b68489c8548e1295d125c93c9c29a4e
with:
config-name: release-drafter.yml
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@ on:
- cron: "0 0 * * 1"

permissions:
actions: read
contents: read
security-events: write

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/contributors_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ on:

permissions:
contents: read
issues: write

jobs:
contributor_report:
name: contributor report
runs-on: ubuntu-latest
permissions:
issues: write

steps:
- name: Harden the runner (Audit all outbound calls)
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/mark-ready-when-ready.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ on:
types: [opened, edited, labeled, unlabeled, synchronize]

permissions:
contents: read
checks: read
contents: write
pull-requests: write
statuses: read

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
Expand All @@ -15,11 +18,6 @@ jobs:
mark-ready:
name: Mark as ready after successful checks
runs-on: ubuntu-latest
permissions:
checks: read
contents: write
pull-requests: write
statuses: read
if: |
contains(github.event.pull_request.labels.*.name, 'Mark Ready When Ready') &&
github.event.pull_request.draft == true
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ on:
types: [opened, reopened, edited, synchronize]
permissions:
contents: read
pull-requests: read
statuses: write
jobs:
main:
permissions:
contents: read
pull-requests: read
statuses: write
uses: github-community-projects/ospo-reusable-workflows/.github/workflows/pr-title.yaml@3b691dff6b68489c8548e1295d125c93c9c29a4e
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
18 changes: 6 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ on:
types: [closed]
branches: [main]
permissions:
contents: read
attestations: write
contents: write
discussions: write
id-token: write
packages: write
pull-requests: read
jobs:
release:
permissions:
contents: write
pull-requests: read
uses: github-community-projects/ospo-reusable-workflows/.github/workflows/release.yaml@3b691dff6b68489c8548e1295d125c93c9c29a4e
with:
publish: true
Expand All @@ -20,11 +22,6 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
release_image:
needs: release
permissions:
contents: read
packages: write
id-token: write
attestations: write
uses: github-community-projects/ospo-reusable-workflows/.github/workflows/release-image.yaml@3b691dff6b68489c8548e1295d125c93c9c29a4e
with:
image-name: ${{ github.repository }}
Expand All @@ -37,9 +34,6 @@ jobs:
image-registry-password: ${{ secrets.GITHUB_TOKEN }}
release_discussion:
needs: release
permissions:
contents: read
discussions: write
uses: github-community-projects/ospo-reusable-workflows/.github/workflows/release-discussion.yaml@3b691dff6b68489c8548e1295d125c93c9c29a4e
with:
full-tag: ${{ needs.release.outputs.full-tag }}
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ on:

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

jobs:
analysis:
name: Merge to Main Scorecard analysis
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
id-token: write

steps:
- name: Harden the runner (Audit all outbound calls)
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ on:

permissions:
contents: read
issues: write
pull-requests: read

jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: read
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@58077d3c7e43986b6b15fba718e8ea69e387dfcc # v2.15.1
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/super-linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,14 @@ concurrency:

permissions:
contents: read
packages: read
statuses: write

jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest

permissions:
contents: read
packages: read
statuses: write

steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@58077d3c7e43986b6b15fba718e8ea69e387dfcc # v2.15.1
Expand Down
Loading