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
2 changes: 2 additions & 0 deletions .github/workflows/binary-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
dispatch-targets:
needs: list-targets
runs-on: ubuntu-latest
permissions: { }
outputs:
windows: ${{ steps.run.outputs.windows }}
non-windows: ${{ steps.run.outputs.non-windows }}
Expand Down Expand Up @@ -139,6 +140,7 @@ jobs:

docker:
runs-on: ubuntu-latest
permissions: { }
steps:
- name: Calculate tag
id: tag
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ on:
env:
CARGO_TERM_COLOR: always

# for attestations
permissions:
id-token: write
attestations: write
contents: read

jobs:
Expand Down Expand Up @@ -86,6 +83,10 @@ jobs:

build:
needs: build-targets
permissions:
contents: read
id-token: write
attestations: write
strategy:
matrix:
target: ${{ fromJSON(needs.build-targets.outputs.names) }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches: [ "main" ]

permissions:
contents: read

jobs:
coverage:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
pull_request:
branches: [ "main", "feature/*" ]

permissions:
contents: read

jobs:
newlines:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/list-targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
value: ${{ jobs.list-targets.outputs.rust_target_by_target }}


permissions: { }

jobs:
list-targets:
runs-on: ubuntu-latest
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request:
branches: [ "main", "feature/*" ]

permissions:
contents: read

jobs:
semver:
permissions:
Expand Down Expand Up @@ -57,7 +60,7 @@ jobs:
breaking-change-docs:
needs: semver
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-latest
steps:
- name: Fetch PR description
Expand Down Expand Up @@ -96,4 +99,4 @@ jobs:
elif [[ "$has_label" == "false" && "$has_section" == "true" ]]; then
echo "::error title=breaking-change-docs::PR has '# Breaking change' section in description but is missing 'breaking change' label."
exit 1
fi
fi
4 changes: 3 additions & 1 deletion .github/workflows/prepare-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:
type: boolean
default: true

permissions:
contents: read

jobs:
create_draft:
runs-on: ubuntu-latest
Expand All @@ -31,7 +34,6 @@ jobs:
TAG_NAME: "v${{ github.event.inputs.version_to_release }}"
permissions:
contents: write
pull-requests: write

steps:

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/readme-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
env:
CARGO_TERM_COLOR: always

permissions:
contents: read

jobs:
check-msrv:
runs-on: ubuntu-latest
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ on:
type: string
required: false

# for attestations in build-release.yml
permissions:
id-token: write
attestations: write
contents: write # needed for viewing and uploading to the draft release

jobs:
Expand Down Expand Up @@ -91,6 +88,10 @@ jobs:

build:
needs: validate
permissions:
contents: read
id-token: write
attestations: write
uses: ./.github/workflows/build-release.yml
secrets: inherit
with:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ env:
DOCKER_RC_TAG: "yshavit/mdq:${{ inputs.version }}-rc"
DOCKER_PUBLISH_TAG: "yshavit/mdq:${{ inputs.version }}"

permissions:
contents: read

jobs:
verify:
runs-on: ubuntu-latest
permissions:
pull-requests: read
env:
GH_TOKEN: ${{ github.token }}
outputs:
Expand Down Expand Up @@ -65,6 +70,7 @@ jobs:
environment: Docker Hub
needs: verify
runs-on: ubuntu-latest
permissions: { }
steps:

- name: Log in to Docker Hub
Expand Down Expand Up @@ -172,4 +178,3 @@ jobs:

- name: Publish
run: cargo publish

3 changes: 3 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
env:
CARGO_TERM_COLOR: always

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/system-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches: [ "main", "feature/*" ]
workflow_dispatch: { }

permissions:
contents: read

jobs:
toml-cases:
runs-on: ubuntu-latest
Expand Down
Loading