Skip to content
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

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #1554

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/DFe.NET_build.yml
Original file line number Diff line number Diff line change
@@ -90,7 +90,7 @@ jobs:
runs-on: ${{ 'ubuntu-latest' }}
steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.7
with:
name: nupkg
path: ${{ github.workspace }}

Unchanged files with check annotations Beta

RSAPKCS1SignatureFormatter rsaF = new RSAPKCS1SignatureFormatter(rsa);
SHA1CryptoServiceProvider sha1 = new SHA1CryptoServiceProvider();

Check warning on line 275 in MDFe.Classes/Extensoes/ExtMDFe.cs

GitHub Actions / build (windows-2022)

'SHA1CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 275 in MDFe.Classes/Extensoes/ExtMDFe.cs

GitHub Actions / build (windows-2022)

'SHA1CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 275 in MDFe.Classes/Extensoes/ExtMDFe.cs

GitHub Actions / build (windows-2022)

'SHA1CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 275 in MDFe.Classes/Extensoes/ExtMDFe.cs

GitHub Actions / build (windows-2022)

'SHA1CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'
byte[] hash = null;
if (retEnviCte != null && retEnviCte.protCTe != null
&& retEnviCte.protCTe.infProt != null
&& retEnviCte.protCTe.infProt.dhRecbto != null)

Check warning on line 42 in CTe.Classes/CTeOutrosServicos/Extensoes/extretCteOS.cs

GitHub Actions / build (windows-2022)

The result of the expression is always 'true' since a value of type 'DateTimeOffset' is never equal to 'null' of type 'DateTimeOffset?'

Check warning on line 42 in CTe.Classes/CTeOutrosServicos/Extensoes/extretCteOS.cs

GitHub Actions / build (windows-2022)

The result of the expression is always 'true' since a value of type 'DateTimeOffset' is never equal to 'null' of type 'DateTimeOffset?'
{
dataEnvio = retEnviCte.protCTe.infProt.dhRecbto;
}
public string RetornoStr { get; protected set; }
public string RetornoCompletoStr { get; protected set; }
public new retDistDFeInt Retorno { get; set; }

Check warning on line 55 in CTe.Servicos/DistribuicaoDFe/RetornoCteDistDFeInt.cs

GitHub Actions / build (windows-2022)

The member 'RetornoCteDistDFeInt.Retorno' does not hide an accessible member. The new keyword is not required.

Check warning on line 55 in CTe.Servicos/DistribuicaoDFe/RetornoCteDistDFeInt.cs

GitHub Actions / build (windows-2022)

The member 'RetornoCteDistDFeInt.Retorno' does not hide an accessible member. The new keyword is not required.
}
}
{
public class ServicoCTeOSRecepcao
{
public event EventHandler<AntesEnviarRecepcao> AntesDeEnviar;

Check warning on line 15 in CTe.Servicos/Recepcao/ServicoCTeOSRecepcao.cs

GitHub Actions / build (windows-2022)

The event 'ServicoCTeOSRecepcao.AntesDeEnviar' is never used

Check warning on line 15 in CTe.Servicos/Recepcao/ServicoCTeOSRecepcao.cs

GitHub Actions / build (windows-2022)

The event 'ServicoCTeOSRecepcao.AntesDeEnviar' is never used
public retCTeOS CTeRecepcaoSincronoV4(CTeEletronico cte, ConfiguracaoServico configuracaoServico = null)
{
RSAPKCS1SignatureFormatter rsaF = new RSAPKCS1SignatureFormatter(rsa);
SHA1CryptoServiceProvider sha1 = new SHA1CryptoServiceProvider();

Check warning on line 92 in CTe.Utils/CTe/ExtCTeOs.cs

GitHub Actions / build (windows-2022)

'SHA1CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 92 in CTe.Utils/CTe/ExtCTeOs.cs

GitHub Actions / build (windows-2022)

'SHA1CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'
byte[] hash = null;
RSAPKCS1SignatureFormatter rsaF = new RSAPKCS1SignatureFormatter(rsa);
SHA1CryptoServiceProvider sha1 = new SHA1CryptoServiceProvider();

Check warning on line 316 in CTe.Utils/CTe/ExtCTe.cs

GitHub Actions / build (windows-2022)

'SHA1CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 316 in CTe.Utils/CTe/ExtCTe.cs

GitHub Actions / build (windows-2022)

'SHA1CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'
byte[] hash = null;
var bytes = File.ReadAllBytes(path);
return bytes.Length == 0 ? null : bytes;
}
catch (Exception e)

Check warning on line 22 in DFe.Utils/FrxFileHelper.cs

GitHub Actions / build (windows-2022)

The variable 'e' is declared but never used

Check warning on line 22 in DFe.Utils/FrxFileHelper.cs

GitHub Actions / build (windows-2022)

The variable 'e' is declared but never used

Check warning on line 22 in DFe.Utils/FrxFileHelper.cs

GitHub Actions / build (windows-2022)

The variable 'e' is declared but never used

Check warning on line 22 in DFe.Utils/FrxFileHelper.cs

GitHub Actions / build (windows-2022)

The variable 'e' is declared but never used

Check warning on line 22 in DFe.Utils/FrxFileHelper.cs

GitHub Actions / build (windows-2022)

The variable 'e' is declared but never used
{
return null;
}
if (Environment.OSVersion.Platform == PlatformID.Win32NT || Environment.OSVersion.Platform == PlatformID.Win32Windows || Environment.OSVersion.Platform == PlatformID.Win32S)
{
if (certificado == null) throw new ArgumentNullException("certificado");
var key = (RSACryptoServiceProvider)certificado.PrivateKey;

Check warning on line 156 in DFe.Utils/Assinatura/CertificadoDigital.cs

GitHub Actions / build (windows-2022)

'X509Certificate2.PrivateKey' is obsolete: 'X509Certificate2.PrivateKey is obsolete. Use the appropriate method to get the private key, such as GetRSAPrivateKey, or use the CopyWithPrivateKey method to create a new instance with a private key.'

Check warning on line 156 in DFe.Utils/Assinatura/CertificadoDigital.cs

GitHub Actions / build (windows-2022)

'X509Certificate2.PrivateKey' is obsolete: 'X509Certificate2.PrivateKey is obsolete. Use the appropriate method to get the private key, such as GetRSAPrivateKey, or use the CopyWithPrivateKey method to create a new instance with a private key.'
var providerHandle = IntPtr.Zero;
var pinBuffer = Encoding.ASCII.GetBytes(pin);
try
{
RSACryptoServiceProvider service = x509Certificate2.PrivateKey as RSACryptoServiceProvider;

Check warning on line 341 in DFe.Utils/Assinatura/CertificadoDigital.cs

GitHub Actions / build (windows-2022)

'X509Certificate2.PrivateKey' is obsolete: 'X509Certificate2.PrivateKey is obsolete. Use the appropriate method to get the private key, such as GetRSAPrivateKey, or use the CopyWithPrivateKey method to create a new instance with a private key.'

Check warning on line 341 in DFe.Utils/Assinatura/CertificadoDigital.cs

GitHub Actions / build (windows-2022)

'X509Certificate2.PrivateKey' is obsolete: 'X509Certificate2.PrivateKey is obsolete. Use the appropriate method to get the private key, such as GetRSAPrivateKey, or use the CopyWithPrivateKey method to create a new instance with a private key.'
if (service != null)
{
? FuncoesXml.ClasseParaXmlString(objetoLocal).RemoverAcentos()
: FuncoesXml.ClasseParaXmlString(objetoLocal));
var docXml = new SignedXml(documento) {SigningKey = certificado.PrivateKey};

Check warning on line 59 in DFe.Utils/Assinatura/AssinaturaDigital.cs

GitHub Actions / build (windows-2022)

'X509Certificate2.PrivateKey' is obsolete: 'X509Certificate2.PrivateKey is obsolete. Use the appropriate method to get the private key, such as GetRSAPrivateKey, or use the CopyWithPrivateKey method to create a new instance with a private key.'
docXml.SignedInfo.SignatureMethod = signatureMethod;
var reference = new Reference {Uri = "#" + id, DigestMethod = digestMethod};
string chaveBase64;
using (SHA1CryptoServiceProvider cryptoTransformSha1 = new SHA1CryptoServiceProvider())

Check warning on line 27 in NFe.Utils/InfRespTec/GerarHashCSRT.cs

GitHub Actions / build (windows-2022)

'SHA1CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 27 in NFe.Utils/InfRespTec/GerarHashCSRT.cs

GitHub Actions / build (windows-2022)

'SHA1CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 27 in NFe.Utils/InfRespTec/GerarHashCSRT.cs

GitHub Actions / build (windows-2022)

'SHA1CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 27 in NFe.Utils/InfRespTec/GerarHashCSRT.cs

GitHub Actions / build (windows-2022)

'SHA1CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'
{
var hash = cryptoTransformSha1.ComputeHash(data);
chaveBase64 = Convert.ToBase64String(hash);
documento.LoadXml(xml);
var docXml = new SignedXml(documento) { SigningKey = certificadoDigital.PrivateKey };

Check warning on line 100 in NFe.Utils/Assinatura/Assinador.cs

GitHub Actions / build (windows-2022)

'X509Certificate2.PrivateKey' is obsolete: 'X509Certificate2.PrivateKey is obsolete. Use the appropriate method to get the private key, such as GetRSAPrivateKey, or use the CopyWithPrivateKey method to create a new instance with a private key.'

Check warning on line 100 in NFe.Utils/Assinatura/Assinador.cs

GitHub Actions / build (windows-2022)

'X509Certificate2.PrivateKey' is obsolete: 'X509Certificate2.PrivateKey is obsolete. Use the appropriate method to get the private key, such as GetRSAPrivateKey, or use the CopyWithPrivateKey method to create a new instance with a private key.'
docXml.SignedInfo.SignatureMethod = signatureMethod;