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

Update token permission- zibai-repo #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@

name: build on Windows

# https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/
permissions:
# Grant read permissions to repository in case it is not a forked public
# repository, but a private repository that was created manually.
contents: read

on:
push:
paths:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/container-prune.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ name: prune container images on self-hosted runners
# docker permits only a single prune operation at a time
concurrency: container-prune

# https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/
# https://github.com/ossf/scorecard/blob/2ef20f17fb2e64147c83440cd2c769653454015a/docs/checks.md#token-permissions
permissions:
# top-level permissions must be defined for security reasons.
contents: read

on:
push:
branches:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ permissions:
# repository, but a private repository that was created manually.
contents: read

# If trigger-specific permissions were supported, write permissions to the
# container registry would only be needed for push events.
packages: write

on:
push:
branches:
Expand Down Expand Up @@ -61,6 +57,11 @@ jobs:
build:
runs-on: ubuntu-20.04

permissions:
# If trigger-specific permissions were supported, write permissions to the
# container registry would only be needed for push events.
packages: write

# This rebuilds all container images whenever any single Dockerfile is
# changed. Therefore, when iterating on a container change, consider
# temporarily commenting all but the container of interest below.
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/fuzz-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Runtime Fuzz Testing

# https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/
# https://github.com/ossf/scorecard/blob/2ef20f17fb2e64147c83440cd2c769653454015a/docs/checks.md#token-permissions
permissions:
# top-level permissions must be defined for security reasons.
contents: read

on:
workflow_dispatch:
inputs:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
# enforce UNIX line endings for all except Windows-specific text files.
name: ensure UNIX line endings

# https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/
# https://github.com/ossf/scorecard/blob/2ef20f17fb2e64147c83440cd2c769653454015a/docs/checks.md#token-permissions
permissions:
# top-level permissions must be defined for security reasons.
contents: read

on:
push:
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion container/rockylinux-9-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN \
&& yum -y upgrade \
&& yum -y install \
cmake \
curl \
# curl \ Start from rockylinux 9.2, curl is available by default
elfutils-libelf-devel \
gcc \
gcc-c++ \
Expand Down