-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[CI] [GHA] Set actions references to specific commit hash; provide explicit top level token permissions for jobs #24839
Merged
dorloff
merged 3 commits into
openvinotoolkit:master
from
akashchi:ci/gha/security-actions-version-token-permissions
Jun 4, 2024
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,8 @@ concurrency: | |
group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-android-arm64-vcpkg | ||
cancel-in-progress: true | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
Smart_CI: | ||
runs-on: ubuntu-latest | ||
|
@@ -21,7 +23,7 @@ jobs: | |
skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}" | ||
steps: | ||
- name: checkout action | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
with: | ||
sparse-checkout: .github/actions/smart-ci | ||
|
||
|
@@ -75,7 +77,7 @@ jobs: | |
run: apt-get update && apt-get install --assume-yes --no-install-recommends git ca-certificates | ||
|
||
- name: Clone OpenVINO | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
with: | ||
path: 'openvino' | ||
|
||
|
@@ -90,7 +92,7 @@ jobs: | |
popd | ||
|
||
- name: Clone vcpkg | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
with: | ||
repository: 'microsoft/vcpkg' | ||
# Keep in sync with <root>/vcpkg.json <builtin-baseline> | ||
|
@@ -130,7 +132,7 @@ jobs: | |
echo "yes" | ./cmdline-tools/bin/sdkmanager --sdk_root=${ANDROID_TOOLS} --install "ndk-bundle" "platform-tools" "platforms;android-${{ env.ANDROID_SDK_VERSION }}" | ||
|
||
- name: Install sccache | ||
uses: mozilla-actions/[email protected] | ||
uses: mozilla-actions/sccache-action@2e7f9ec7921547d4b46598398ca573513895d0bd # v0.0.4 | ||
with: | ||
version: "v0.7.5" | ||
|
||
|
@@ -182,7 +184,7 @@ jobs: | |
# Upload build logs | ||
# | ||
- name: Upload build logs | ||
uses: actions/upload-artifact@v4 | ||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | ||
if: always() | ||
with: | ||
name: build_logs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ on: | |
- created | ||
- edited | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
take-issue: | ||
name: Take issue | ||
|
@@ -15,7 +17,7 @@ jobs: | |
timeout-minutes: 10 | ||
steps: | ||
- name: take an issue | ||
uses: bdougie/[email protected] | ||
uses: bdougie/take-action@1439165ac45a7461c2d89a59952cd7d941964b87 # v1.6.1 | ||
with: | ||
message: Thank you for looking into this issue! Please let us know if you have any questions or require any help. | ||
issueCurrentlyAssignedMessage: Thanks for being interested in this issue. It looks like this ticket is already assigned to a contributor. Please communicate with the assigned contributor to confirm the status of the issue. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,23 +10,25 @@ concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
Build_Doc: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Clone OpenVINO | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
with: | ||
submodules: 'true' | ||
lfs: 'true' | ||
|
||
- name: Install apt-get dependencies | ||
uses: awalsh128/[email protected] | ||
uses: awalsh128/cache-apt-pkgs-action@a6c3917cc929dd0345bfb2d3feaf9101823370ad # v1.4.2 | ||
with: | ||
packages: graphviz texlive liblua5.2-0 libclang1-9 libclang-cpp9 | ||
version: 3.0 | ||
|
||
- uses: actions/setup-python@v5 | ||
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | ||
id: cp310 | ||
with: | ||
python-version: '3.10' | ||
|
@@ -56,7 +58,7 @@ jobs: | |
|
||
- name: Cache documentation | ||
id: cache_sphinx_docs | ||
uses: actions/cache@v4 | ||
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | ||
with: | ||
path: build/docs/_build/.doctrees | ||
key: sphinx-docs-cache | ||
|
@@ -70,13 +72,13 @@ jobs: | |
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV | ||
|
||
- name: 'Upload sphinx.log' | ||
uses: actions/upload-artifact@v4 | ||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | ||
with: | ||
name: sphinx_build_log_${{ env.PR_NUMBER }}.log | ||
path: build/docs/sphinx.log | ||
|
||
- name: 'Upload docs html' | ||
uses: actions/upload-artifact@v4 | ||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | ||
with: | ||
name: openvino_docs_html_${{ env.PR_NUMBER }}.zip | ||
path: build/docs/openvino_docs_html.zip | ||
|
@@ -93,7 +95,7 @@ jobs: | |
|
||
- name: 'Upload test results' | ||
if: failure() | ||
uses: actions/upload-artifact@v4 | ||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | ||
with: | ||
name: openvino_docs_pytest | ||
path: build/docs/_artifacts/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,8 @@ concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
Build: | ||
strategy: | ||
|
@@ -25,12 +27,12 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Clone OpenVINO | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
with: | ||
submodules: 'true' | ||
|
||
- name: Install OpenCL | ||
uses: awalsh128/[email protected] | ||
uses: awalsh128/cache-apt-pkgs-action@a6c3917cc929dd0345bfb2d3feaf9101823370ad # v1.4.2 | ||
if: runner.os == 'Linux' | ||
with: | ||
packages: ocl-icd-opencl-dev opencl-headers | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
Coverage: | ||
runs-on: ${{ matrix.config.os }} | ||
|
@@ -16,19 +18,19 @@ jobs: | |
|
||
steps: | ||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | ||
with: | ||
python-version: '3.10.10' | ||
architecture: 'x64' | ||
|
||
|
||
- name: Setup ccache | ||
uses: hendrikmuhs/[email protected] | ||
uses: hendrikmuhs/ccache-action@c92f40bee50034e84c763e33b317c77adaa81c92 # v1.2.13 | ||
with: | ||
max-size: 50G | ||
|
||
- name: Clone OpenVINO | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
with: | ||
submodules: 'true' | ||
|
||
|
@@ -55,7 +57,7 @@ jobs: | |
python3 -m pip install -r ${{ github.workspace }}/tools/mo/requirements_dev.txt | ||
|
||
- name: Build OpenVINO with CMake | ||
uses: ashutoshvarma/action-cmake-build@master | ||
uses: ashutoshvarma/action-cmake-build@ade188313bc7eaa6f14349569a64d8bc716342ff # master | ||
with: | ||
build-dir: ${{ github.workspace }}/build | ||
cc: ${{ matrix.config.cc }} | ||
|
@@ -112,7 +114,7 @@ jobs: | |
run: ${{ github.workspace }}/bin/intel64/Release/ov_tensorflow_frontend_tests --gtest_filter=-*IE_GPU* | ||
|
||
- name: Build coverage with CMake | ||
uses: ashutoshvarma/action-cmake-build@master | ||
uses: ashutoshvarma/action-cmake-build@ade188313bc7eaa6f14349569a64d8bc716342ff # master | ||
with: | ||
build-dir: ${{ github.workspace }}/coverage | ||
cc: ${{ matrix.config.cc }} | ||
|
@@ -135,6 +137,6 @@ jobs: | |
lcov --capture --directory ${{ github.workspace }}/. --output-file coverage.info | ||
genhtml coverage.info --output-directory coverage-report | ||
- name: Collect coverage | ||
uses: codecov/codecov-action@v4 | ||
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # v4.4.1 | ||
with: | ||
verbose: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
name: 'Dependency Review' | ||
on: [pull_request, merge_group] | ||
|
||
permissions: | ||
contents: read | ||
permissions: read-all | ||
|
||
jobs: | ||
dependency-review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone OpenVINO | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
|
||
- name: Dependency Review | ||
uses: actions/[email protected] | ||
uses: actions/dependency-review-action@0c155c5e8556a497adf53f2c18edabf945ed8e70 # v4.3.2 | ||
with: | ||
config-file: './.github/dependency_review.yml' | ||
base-ref: ${{ github.pull_request.base.sha || github.event.merge_group.base_ref }} | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dependabot can work with these dependencies: dependabot/dependabot-core#4691.