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

Add security policy, GITHUB_TOKEN access restrictions. #6814

Merged
merged 3 commits into from
Jun 4, 2024
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
7 changes: 2 additions & 5 deletions .github/workflows/clean-gcloud-profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,11 @@
# happens, run this workflow manually to clean up the login profiles.

name: Clean GCloud Profiles
permissions:
contents: read

on:
workflow_dispatch:
# push:
# branches:
# - main
# pull_request:
# types: [opened, reopened, synchronize]

env:
GCE_GPU_CI_SA: ${{ secrets.GCE_GPU_CI_SA }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Documentation
permissions:
contents: write
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need this here? This gives every step content write access. Could it be limited to just the steps that need it?

Copy link
Member Author

@ssheorey ssheorey Jun 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Permissions don't seem to work per step, only per job (tried per step and github refused to run it). That workflow only has one job.

actions: write

on:
workflow_dispatch:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: MacOS
permissions:
contents: write
actions: write

on:
workflow_dispatch:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Style Check
permissions:
contents: read
actions: write

on:
workflow_dispatch:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ubuntu-cuda.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Ubuntu CUDA
permissions:
contents: write
actions: write

on:
workflow_dispatch:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ubuntu-openblas.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Ubuntu OpenBLAS
permissions:
contents: read
actions: write

on:
workflow_dispatch:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ubuntu-sycl.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Ubuntu SYCL
permissions:
contents: read
actions: write

on:
workflow_dispatch:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ubuntu-wheel.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Ubuntu Wheel
permissions:
contents: write
actions: write

on:
workflow_dispatch:
Expand Down Expand Up @@ -102,7 +105,7 @@ jobs:
run: |
gsutil cp ${GITHUB_WORKSPACE}/${{ env.CCACHE_TAR_NAME }}.tar.gz gs://open3d-ci-cache/
- name: Update devel release
# if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' }}
env:
GH_TOKEN: ${{ github.token }}
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Ubuntu
permissions:
contents: write
actions: write

on:
workflow_dispatch:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/vtk_packages.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: VTK Packages
permissions:
contents: write

on:
# pull_request:
# branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/webrtc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: WebRTC
permissions:
contents: write
actions: write

on:
workflow_dispatch:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Windows
permissions:
contents: write
actions: write

on:
workflow_dispatch:
Expand Down
5 changes: 5 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Security Policy
Intel is committed to rapidly addressing security vulnerabilities affecting our customers and providing clear guidance on the solution, impact, severity and mitigation.

## Reporting a Vulnerability
Please report any security vulnerabilities in this project utilizing the guidelines [here](https://www.intel.com/content/www/us/en/security-center/vulnerability-handling-guidelines.html).
Loading