Skip to content

Commit

Permalink
Update github-ci.yml
Browse files Browse the repository at this point in the history
Added workflow permissions to meet OpenSSF Scorecard requirements.
  • Loading branch information
michaelbeale-IL authored Jul 18, 2024
1 parent 4be3996 commit ef4229a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# SPDX-License-Identifier: Apache-2.0

name: Build and Test
permissions: read-all
on:
# By default this will run when the activity type is "opened", "synchronize",
# or "reopened".
Expand Down Expand Up @@ -55,6 +56,7 @@ jobs:
nix-build:
name: '${{ matrix.os }} ${{ matrix.build_type }} shared=${{ matrix.shared_lib }}'
runs-on: '${{ matrix.os }}'
permissions: write # required for actions/upload-artifacts@v2
defaults:
run:
shell: bash
Expand Down

0 comments on commit ef4229a

Please sign in to comment.