mirror of
https://github.com/ruby/ruby.git
synced 2026-01-28 13:04:22 +00:00
Bumps [actions/cache](https://github.com/actions/cache) from 3.2.2 to 3.2.4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](4723a57e26...627f0f41f6)
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
75 lines
2.5 KiB
YAML
75 lines
2.5 KiB
YAML
name: "Code scanning - action"
|
|
|
|
on:
|
|
# push:
|
|
# paths-ignore:
|
|
# - 'doc/**'
|
|
# - '**/man'
|
|
# - '**.md'
|
|
# - '**.rdoc'
|
|
# - '**/.document'
|
|
# pull_request:
|
|
# paths-ignore:
|
|
# - 'doc/**'
|
|
# - '**/man'
|
|
# - '**.md'
|
|
# - '**.rdoc'
|
|
# - '**/.document'
|
|
schedule:
|
|
- cron: '0 12 * * *'
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}
|
|
cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}
|
|
|
|
permissions: # added using https://github.com/step-security/secure-workflows
|
|
contents: read
|
|
|
|
jobs:
|
|
CodeQL-Build:
|
|
|
|
# CodeQL runs on ubuntu-latest and windows-latest
|
|
permissions:
|
|
actions: read # for github/codeql-action/init to get workflow details
|
|
contents: read # for actions/checkout to fetch code
|
|
security-events: write # for github/codeql-action/autobuild to send a status report
|
|
runs-on: ubuntu-latest
|
|
# CodeQL fails to run pull requests from dependabot due to missing write access to upload results.
|
|
if: ${{ !contains(github.event.head_commit.message, '[DOC]') && !contains(github.event.pull_request.labels.*.name, 'Documentation') && github.event.head_commit.pusher.name != 'dependabot[bot]' }}
|
|
|
|
env:
|
|
enable_install_doc: no
|
|
|
|
steps:
|
|
- name: Install libraries
|
|
run: |
|
|
set -x
|
|
sudo apt-get update -q || :
|
|
sudo apt-get install --no-install-recommends -q -y build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev bison autoconf ruby
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
|
|
|
- uses: actions/cache@627f0f41f6904a5b1efbaed9f96d9eb58e92e920 # v3.2.4
|
|
with:
|
|
path: .downloaded-cache
|
|
key: downloaded-cache
|
|
|
|
- name: Remove an obsolete rubygems vendored file
|
|
run: sudo rm /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@3ebbd71c74ef574dbc558c82f70e52732c8b44fe # v2.2.1
|
|
with:
|
|
config-file: ./.github/codeql/codeql-config.yml
|
|
|
|
- name: Set ENV
|
|
run: echo "GNUMAKEFLAGS=-j$((1 + $(nproc --all)))" >> $GITHUB_ENV
|
|
|
|
- name: Autobuild
|
|
uses: github/codeql-action/autobuild@3ebbd71c74ef574dbc558c82f70e52732c8b44fe # v2.2.1
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@3ebbd71c74ef574dbc558c82f70e52732c8b44fe # v2.2.1
|