Skip to content

Commit

Permalink
Secure build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
harp-intel authored Jan 22, 2024
1 parent e224caa commit 758dcd6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ name: Build & Test

on: [pull_request, push]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-20.04
container:
image: centos:7
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: install dependencies
run: |
yum update -y
Expand All @@ -19,7 +22,7 @@ jobs:
pip3 install -r requirements.txt
make dist
- name: upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: perfspect
path: dist/perfspect*.tgz
Expand All @@ -29,7 +32,7 @@ jobs:
container:
image: centos:7
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: install dependencies
run: |
yum update -y
Expand All @@ -48,7 +51,7 @@ jobs:
pip3 install -r requirements.txt
pyinstaller -F hotspot.py -n hotspot --bootloader-ignore-signals --add-data "perf-map-agent/out/*:." --add-data "flamegraph.pl:." --add-data "difffolded.pl:." --add-data "stackcollapse-perf.pl:." --runtime-tmpdir . --exclude-module readline
- name: upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: hotspot
path: dist/hotspot
path: dist/hotspot

0 comments on commit 758dcd6

Please sign in to comment.