forked from erlang/otp
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (38 loc) · 1.47 KB
/
ossf-compiler-flags-scanner.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Open Source Security Foundation
on:
workflow_dispatch:
schedule:
- cron: 0 1 * * *
permissions:
# Required to upload SARIF file to CodeQL.
# See: https://github.com/github/codeql-action/issues/2117
actions: read
# Require writing security events to upload SARIF file to security tab
security-events: write
# Only need to read contents
contents: read
jobs:
schedule-scan:
runs-on: ubuntu-latest
if: github.repository == 'garazdawi/otp'
steps:
- uses: actions/[email protected]
- name: Create initial pre-release tar
run: .github/scripts/init-pre-release.sh otp_archive.tar.gz otp_src.tar.gz
- uses: actions/[email protected]
with:
repository: ossf/wg-best-practices-os-developers
sparse-checkout: docs/Compiler-Hardening-Guides/compiler-options-scraper
path: ossf
- name: Setup compiler options scraper
run: |
pip3 install -r ossf/docs/Compiler-Hardening-Guides/compiler-options-scraper/requirements.txt
python3 ossf/docs/Compiler-Hardening-Guides/compiler-options-scraper/main.py
- uses: ./.github/actions/build-base-image
with:
BASE_BRANCH: master
BUILD_IMAGE: true
- name: Extract CFLAGS and LDFLAGS
run: |
docker run --entrypoint "" otp \
bash -c "erl -noshell -eval 'io:format(\"~ts~n\",[proplists:get_value(cflags,erlang:system_info(compile_info))]).' -s init stop"