Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Workflows security hardening #3980

Merged
merged 2 commits into from
Sep 25, 2022
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
6 changes: 6 additions & 0 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ env:

on: [push, pull_request]

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
cargo-deny:
name: Style/cargo-deny
Expand Down Expand Up @@ -532,6 +535,9 @@ jobs:
path: size-result.json

build:
permissions:
contents: write # to create GitHub release (softprops/action-gh-release)

name: Build
needs: [ min_version, deps ]
runs-on: ${{ matrix.job.os }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/GnuTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ name: GnuTests

on: [push, pull_request]

permissions:
contents: read

jobs:
gnu:
permissions:
Expand Down