-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Update many of the actions to their latest version #1731
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
Changes from all commits
6fad9f5
d576a74
480c837
4946c56
e3b0836
96c24e7
013177d
5a16da9
2729f8d
2eda02c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,62 +1,61 @@ | ||
| name: "CodeQL" | ||
| name: "Code Scanning - Action" | ||
|
|
||
| on: | ||
| push: | ||
| branches: [master] | ||
| branches: [master, develop] | ||
| pull_request: | ||
| # The branches below must be a subset of the branches above | ||
| branches: [master] | ||
| branches: [master, develop] | ||
| schedule: | ||
| - cron: '0 23 * * 4' | ||
| # ┌───────────── minute (0 - 59) | ||
| # │ ┌───────────── hour (0 - 23) | ||
| # │ │ ┌───────────── day of the month (1 - 31) | ||
| # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | ||
| # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | ||
| # │ │ │ │ │ | ||
| # │ │ │ │ │ | ||
| # │ │ │ │ │ | ||
| # * * * * * | ||
| - cron: '30 1 * * 0' | ||
|
|
||
| jobs: | ||
| analyze: | ||
| name: Analyze | ||
| CodeQL-Build: | ||
| # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| # Override automatic language detection by changing the below list | ||
| # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python'] | ||
| language: ['javascript'] | ||
| # Learn more... | ||
| # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection | ||
| permissions: | ||
| # required for all workflows | ||
| security-events: write | ||
|
|
||
| # only required for workflows in private repositories | ||
| actions: read | ||
| contents: read | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v2 | ||
| with: | ||
| # We must fetch at least the immediate parents so that if this is | ||
| # a pull request then we can checkout the head. | ||
| fetch-depth: 2 | ||
|
|
||
| # If this run was triggered by a pull request event, then checkout | ||
| # the head of the pull request instead of the merge commit. | ||
| - run: git checkout HEAD^2 | ||
| if: ${{ github.event_name == 'pull_request' }} | ||
|
|
||
| # Initializes the CodeQL tools for scanning. | ||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v1 | ||
| with: | ||
| languages: ${{ matrix.language }} | ||
|
|
||
| # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
| # If this step fails, then you should remove it and run the build manually (see below) | ||
| - name: Autobuild | ||
| uses: github/codeql-action/autobuild@v1 | ||
|
|
||
| # ℹ️ Command-line programs to run using the OS shell. | ||
| # 📚 https://git.io/JvXDl | ||
|
|
||
| # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | ||
| # and modify them (or add more) to build your code if your project | ||
| # uses a compiled language | ||
|
|
||
| #- run: | | ||
| # make bootstrap | ||
| # make release | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v1 | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v3 | ||
|
|
||
| # Initializes the CodeQL tools for scanning. | ||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v2 | ||
| # Override language selection by uncommenting this and choosing your languages | ||
| with: | ||
| languages: javascript, python | ||
|
|
||
| # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). | ||
| # If this step fails, then you should remove it and run the build manually (see below). | ||
| - name: Autobuild | ||
| uses: github/codeql-action/autobuild@v2 | ||
|
|
||
| # ℹ️ Command-line programs to run using the OS shell. | ||
| # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun | ||
|
|
||
| # ✏️ If the Autobuild fails above, remove it and uncomment the following | ||
| # three lines and modify them (or add more) to build your code if your | ||
| # project uses a compiled language | ||
|
|
||
| #- run: | | ||
| # make bootstrap | ||
| # make release | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v2 |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -7,14 +7,14 @@ on: | |||||
| jobs: | ||||||
| post_result_of_svg_check: | ||||||
| name: Post the result of the Check SVG Action | ||||||
| runs-on: ubuntu-18.04 | ||||||
| runs-on: ubuntu-latest | ||||||
| steps: | ||||||
| - name: Check if the trigger run worked. If it failed, fail the current run. | ||||||
| if: github.event.workflow_run.conclusion != 'success' | ||||||
| uses: cutenode/action-always-fail@v1.0.1 | ||||||
|
|
||||||
| - name: Download workflow artifact | ||||||
| uses: dawidd6/action-download-artifact@v2.11.0 | ||||||
| uses: dawidd6/action-download-artifact@v2.26.1 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| if: success() | ||||||
| with: | ||||||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||||||
|
|
@@ -24,19 +24,19 @@ jobs: | |||||
| - name: Read the pr_num file | ||||||
| if: success() | ||||||
| id: pr_num_reader | ||||||
| uses: juliangruber/read-file-action@v1.0.0 | ||||||
| uses: juliangruber/read-file-action@v1.1.6 | ||||||
| with: | ||||||
| path: ./pr_num/pr_num.txt | ||||||
|
|
||||||
| - name: Read the err message file | ||||||
| if: success() | ||||||
| id: err_message_reader | ||||||
| uses: juliangruber/read-file-action@v1.0.0 | ||||||
| uses: juliangruber/read-file-action@v1.1.6 | ||||||
| with: | ||||||
| path: ./err_messages/err_messages.txt | ||||||
|
|
||||||
| - name: Comment on the PR about the result - SVG Error | ||||||
| uses: jungwinter/comment@v1 # let us comment on a specific PR | ||||||
| uses: jungwinter/comment@v1.1.0 # let us comment on a specific PR | ||||||
| if: success() && (steps.err_message_reader.outputs.content != '') | ||||||
| env: | ||||||
| MESSAGE: | | ||||||
|
|
@@ -61,7 +61,7 @@ jobs: | |||||
| body: ${{ format(env.MESSAGE, steps.err_message_reader.outputs.content) }} | ||||||
|
|
||||||
| - name: Comment on the PR about the result - Failure | ||||||
| uses: jungwinter/comment@v1 # let us comment on a specific PR | ||||||
| uses: jungwinter/comment@v1.1.0 # let us comment on a specific PR | ||||||
| if: failure() | ||||||
| env: | ||||||
| MESSAGE: | | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -7,7 +7,7 @@ on: | |||||
| jobs: | ||||||
| post_screenshots_in_comment: | ||||||
| name: Post the screenshot | ||||||
| runs-on: ubuntu-18.04 | ||||||
| runs-on: ubuntu-latest | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ⚠ This change will take effect when this commit is merged to |
||||||
| if: github.event.action == 'completed' && github.event.workflow_run.conclusion != 'skipped' | ||||||
| env: | ||||||
| # three possible values: 'skipped', 'success', 'failure' | ||||||
|
|
@@ -20,22 +20,22 @@ jobs: | |||||
| run: echo $PEEK_STATUS | ||||||
|
|
||||||
| - name: Download workflow artifact | ||||||
| uses: dawidd6/action-download-artifact@v2.11.0 | ||||||
| uses: dawidd6/action-download-artifact@v2.26.1 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a recently update to that action.
Suggested change
|
||||||
| with: | ||||||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||||||
| workflow: peek_icons.yml | ||||||
| run_id: ${{ github.event.workflow_run.id }} | ||||||
|
|
||||||
| - name: Read the pr_num file | ||||||
| id: pr_num_reader | ||||||
| uses: juliangruber/read-file-action@v1.0.0 | ||||||
| uses: juliangruber/read-file-action@v1.1.6 | ||||||
| with: | ||||||
| path: ./pr_num/pr_num.txt | ||||||
|
|
||||||
| - name: Read the err message file | ||||||
| if: success() | ||||||
| id: err_message_reader | ||||||
| uses: juliangruber/read-file-action@v1.0.0 | ||||||
| uses: juliangruber/read-file-action@v1.1.6 | ||||||
| with: | ||||||
| path: ./err_messages/err_messages.txt | ||||||
|
|
||||||
|
|
@@ -81,7 +81,7 @@ jobs: | |||||
| client_id: ${{secrets.IMGUR_CLIENT_ID}} | ||||||
|
|
||||||
| - name: Comment on the PR about the result - Success | ||||||
| uses: jungwinter/comment@v1 # let us comment on a specific PR | ||||||
| uses: jungwinter/comment@v1.1.0 # let us comment on a specific PR | ||||||
| if: env.PEEK_STATUS == 'success' && success() | ||||||
| env: | ||||||
| MESSAGE: | | ||||||
|
|
@@ -138,7 +138,7 @@ jobs: | |||||
|
|
||||||
| - name: Comment on the PR about the result - Failure | ||||||
| if: env.PEEK_STATUS == 'failure' | ||||||
| uses: jungwinter/comment@v1 # let us comment on a specific PR | ||||||
| uses: jungwinter/comment@v1.1.0 # let us comment on a specific PR | ||||||
| env: | ||||||
| MESSAGE: | | ||||||
| Hi there, | ||||||
|
|
@@ -166,7 +166,7 @@ jobs: | |||||
| body: ${{ format(env.MESSAGE, steps.err_message_reader.outputs.content) }} | ||||||
| - name: Comment on the PR about the result - Failure | ||||||
| if: failure() | ||||||
| uses: jungwinter/comment@v1 # let us comment on a specific PR | ||||||
| uses: jungwinter/comment@v1.1.0 # let us comment on a specific PR | ||||||
| env: | ||||||
| MESSAGE: | | ||||||
| Hi there, | ||||||
|
|
||||||
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.